Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeysova authored Jul 7, 2021
1 parent 71b0a3e commit 4284297
Showing 1 changed file with 26 additions and 28 deletions.
54 changes: 26 additions & 28 deletions api-admin/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,14 @@ components:
content:
application/json:
schema:
$ref: '#/components/schemas/Users'
example:
- userId: 41190cee-5231-4dcc-8167-ebf798b55ce3
name: user-1
appIds: [41190cee-5231-4dcc-8167-ebf798b55ce3, 41190cee-5231-4dcc-8167-ebf798b55ce4]

- userId: 41190cee-5231-55gg-8167-ebf798b55ce3
name: user-2
appIds: [41190cee-5231-4dcc-8167-ebf798b55ce3, 41190cee-5231-4dcc-8167-ebf798b55ce4]
type: object
required:
- users
properties:
users:
type: array
items:
$ref: '#/components/schemas/User'

ApplicationsUsersListFailure:
description:
Expand All @@ -191,11 +190,11 @@ components:
description: |
Possible errors: <br/>
`access_denied` — This error occures when user's session was expired | user doesn't have enough permission | or user unauthorized.<br/>
`invalid_request` — Something was wrong with user request.<br/>
`application_not_found` — No application with provided ID.<br/>
type: string
enum:
- access_denied
- invalid_request
- application_not_found

requestBodies:
ApplicationsUserAdd:
Expand Down Expand Up @@ -264,20 +263,19 @@ components:
example: 41190cee-5231-4dcc-8167-ebf798b55ce3

schemas:
Users:
type: array
items:
type: object
properties:
userId:
type: string
format: uuid
name:
type: string
appIds:
type: array
items:
description: applications id which related to user
type: string
format: uuid
example: 41190cee-5231-4dcc-8167-ebf798b55ce3
User:
type: object
properties:
id:
type: string
format: uuid
firstName:
type: string
example: John
lastName:
type: string
example: Doe
email:
type: string
format: email
example: [email protected]

0 comments on commit 4284297

Please sign in to comment.