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:
Javier Adriel
2022-06-09 18:13:46 -05:00
committed by GitHub
parent 5a8e029005
commit c509e5db70
25 changed files with 2400 additions and 0 deletions

View File

@@ -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