API to receive an email address and set it (#2095)
* Generate swagger code for new endpoints * Implemetn swagger APIs * Add unit tests
This commit is contained in:
@@ -1232,6 +1232,70 @@ paths:
|
||||
tags:
|
||||
- OperatorAPI
|
||||
|
||||
/mp-integration:
|
||||
get:
|
||||
summary: Returns email registered for marketplace integration
|
||||
operationId: GetMPIntegration
|
||||
responses:
|
||||
200:
|
||||
description: A successful response.
|
||||
schema:
|
||||
$ref: "#/definitions/mpIntegration"
|
||||
default:
|
||||
description: Generic error response.
|
||||
schema:
|
||||
$ref: "#/definitions/error"
|
||||
tags:
|
||||
- OperatorAPI
|
||||
delete:
|
||||
summary: Delete email registered for marketplace integration
|
||||
operationId: DeleteMPIntegration
|
||||
responses:
|
||||
204:
|
||||
description: A successful response.
|
||||
default:
|
||||
description: Generic error response.
|
||||
schema:
|
||||
$ref: "#/definitions/error"
|
||||
tags:
|
||||
- OperatorAPI
|
||||
post:
|
||||
summary: Set email to register for marketplace integration
|
||||
operationId: PostMPIntegration
|
||||
parameters:
|
||||
- name: body
|
||||
in: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: "#/definitions/mpIntegration"
|
||||
responses:
|
||||
201:
|
||||
description: A successful response.
|
||||
default:
|
||||
description: Generic error response.
|
||||
schema:
|
||||
$ref: "#/definitions/error"
|
||||
tags:
|
||||
- OperatorAPI
|
||||
patch:
|
||||
summary: Update email registered for marketplace integration
|
||||
operationId: PatchMPIntegration
|
||||
parameters:
|
||||
- name: body
|
||||
in: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: "#/definitions/mpIntegration"
|
||||
responses:
|
||||
200:
|
||||
description: A successful response.
|
||||
default:
|
||||
description: Generic error response.
|
||||
schema:
|
||||
$ref: "#/definitions/error"
|
||||
tags:
|
||||
- OperatorAPI
|
||||
|
||||
/namespaces/{namespace}/tenants/{tenant}/pvc/{PVCName}:
|
||||
delete:
|
||||
summary: Delete PVC
|
||||
@@ -3346,3 +3410,10 @@ definitions:
|
||||
properties:
|
||||
domains:
|
||||
$ref: "#/definitions/domainsConfiguration"
|
||||
|
||||
mpIntegration:
|
||||
type: object
|
||||
properties:
|
||||
email:
|
||||
type: string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user