From dd69b5f851af0d11c9d690f513eee3c7d53f79b5 Mon Sep 17 00:00:00 2001 From: Lyon Hill Date: Thu, 28 May 2020 14:14:16 -0600 Subject: [PATCH] feat: add onboard user to the swagger doc (#18264) This feature has been live for a while but I left it out of the swagger doc because I wanted to test it in the cloud environment before I added it to the doc --- http/swagger.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/http/swagger.yml b/http/swagger.yml index 2e3ce4d3d2..71f6d93b02 100644 --- a/http/swagger.yml +++ b/http/swagger.yml @@ -112,6 +112,35 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" + /setup/user: + post: + operationId: PostSetupUser + tags: + - Setup + summary: Set up a new user, org and bucket + description: Post an onboarding request to set up a new user, org and bucket. + parameters: + - $ref: "#/components/parameters/TraceSpan" + requestBody: + description: Source to create + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/OnboardingRequest" + responses: + "201": + description: Created default user, bucket, org + content: + application/json: + schema: + $ref: "#/components/schemas/OnboardingResponse" + default: + description: Unexpected error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" /documents/templates: get: operationId: GetDocumentsTemplates