Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions contracts/priv/quartz-oem.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions contracts/priv/unity.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 18 additions & 15 deletions src/quartz/paths/orgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ get:
- Organizations
summary: List all organizations
responses:
"200":
'200':
description: A list of organizations
content:
application/json:
schema:
$ref: "../schemas/Organizations.yml"
"401":
$ref: '../schemas/Organizations.yml'
'401':
description: Unauthorized bearer token
$ref: "../../common/responses/ServerError.yml"
$ref: '../../common/responses/ServerError.yml'
default:
description: Unexpected error
$ref: "../../common/responses/ServerError.yml"
$ref: '../../common/responses/ServerError.yml'
post:
operationId: PostOrgs
tags:
Expand All @@ -27,23 +27,26 @@ post:
content:
application/json:
schema:
$ref: "../schemas/OrganizationRequest.yml"
$ref: '../schemas/OrganizationRequest.yml'
responses:
"201":
'201':
description: Organization created
content:
application/json:
schema:
$ref: "../schemas/OrganizationWithToken.yml"
"400":
$ref: '../schemas/OrganizationWithToken.yml'
'400':
description: Invalid request
$ref: "../../common/responses/ServerError.yml"
"401":
$ref: '../../common/responses/ServerError.yml'
'401':
description: Unauthorized bearer token
$ref: "../../common/responses/ServerError.yml"
"409":
$ref: '../../common/responses/ServerError.yml'
'403':
description: Organization limit reached
$ref: '../../common/responses/ServerError.yml'
'409':
description: Organization name taken
$ref: "../../common/responses/ServerError.yml"
$ref: '../../common/responses/ServerError.yml'
default:
description: Unexpected error
$ref: "../../common/responses/ServerError.yml"
$ref: '../../common/responses/ServerError.yml'
3 changes: 3 additions & 0 deletions src/unity/paths/orgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ post:
'401':
description: Unauthorized. The token passed doesn't have permissions necessary to complete the request.
$ref: '../../common/responses/ServerError.yml'
'403':
description: Organization limit reached
$ref: '../../common/responses/ServerError.yml'
'409':
description: Conflict. The organization name is already in use.
$ref: '../../common/responses/ServerError.yml'
Expand Down