Skip to content

Commit

Permalink
fix(openapi): Uniformize
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Jan 9, 2024
1 parent d7b3f40 commit 96fd9ef
Show file tree
Hide file tree
Showing 32 changed files with 58 additions and 186 deletions.
4 changes: 2 additions & 2 deletions src/openapi/paths/apikeys/apikeys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ collectionMethods:
- $ref: '../../api.yml#/components/parameters/sort'
responses:
'200':
description: Success
description: OK
content:
application/json:
schema:
Expand All @@ -21,7 +21,7 @@ collectionMethods:
items:
$ref: '../../api.yml#/components/schemas/ApiKey'
totalCount:
type: number
type: integer
'400':
$ref: '../../api.yml#/components/responses/BadRequest'
'401':
Expand Down
2 changes: 1 addition & 1 deletion src/openapi/paths/auth/recovery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ post:
pattern: ^(?=.*[A-Za-z])(?=.*\d)(?=.*[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~])[A-Za-z\d!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]{8,}$
responses:
'200':
description: Success
description: OK
content:
application/json:
schema:
Expand Down
2 changes: 1 addition & 1 deletion src/openapi/paths/auth/signout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ post:
summary: Sign a user out
responses:
'204':
description: Success
description: OK
content:
application/json:
schema:
Expand Down
4 changes: 2 additions & 2 deletions src/openapi/paths/categories/categories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ collectionMethods:
- $ref: '../../api.yml#/components/parameters/sort'
responses:
'200':
description: Success
description: OK
content:
application/json:
schema:
Expand All @@ -21,7 +21,7 @@ collectionMethods:
items:
$ref: '../../api.yml#/components/schemas/Category'
totalCount:
type: number
type: integer
'400':
$ref: '../../api.yml#/components/responses/BadRequest'
'401':
Expand Down
2 changes: 1 addition & 1 deletion src/openapi/paths/categories/identifiers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ documentMethods:
- $ref: '../../api.yml#/components/parameters/identifierId'
responses:
'200':
description: Success
description: OK
content:
application/json:
schema:
Expand Down
2 changes: 1 addition & 1 deletion src/openapi/paths/documents/documents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ documentMethods:
- $ref: '../../api.yml#/components/parameters/documentId'
responses:
'200':
description: Success
description: OK
content:
application/json:
schema:
Expand Down
2 changes: 1 addition & 1 deletion src/openapi/paths/followups/followups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ documentMethods:
- $ref: '../../api.yml#/components/parameters/followUpId'
responses:
'200':
description: Success
description: OK
content:
application/json:
schema:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ collectionMethods:
- $ref: '../../api.yml#/components/parameters/sort'
responses:
'200':
description: Success
description: OK
content:
application/json:
schema:
Expand All @@ -21,7 +21,7 @@ collectionMethods:
items:
$ref: '../../api.yml#/components/schemas/GeographicalCategory'
totalCount:
type: number
type: integer
'400':
$ref: '../../api.yml#/components/responses/BadRequest'
'401':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ collectionMethods:
- Geographical categories - Structures
summary: List structures from a geographical category
parameters:
- $ref: '../../api.yml#/components/parameters/filters'
- $ref: '../../api.yml#/components/parameters/skip'
- $ref: '../../api.yml#/components/parameters/limit'
- $ref: '../../api.yml#/components/parameters/sort'
- $ref: '../../api.yml#/components/parameters/filters'
- $ref: '../../api.yml#/components/parameters/skip'
- $ref: '../../api.yml#/components/parameters/limit'
- $ref: '../../api.yml#/components/parameters/sort'
responses:
'200':
description: OK
Expand Down
4 changes: 2 additions & 2 deletions src/openapi/paths/groups/groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ collectionMethods:
- $ref: '../../api.yml#/components/parameters/sort'
responses:
'200':
description: Success
description: OK
content:
application/json:
schema:
Expand All @@ -21,7 +21,7 @@ collectionMethods:
items:
$ref: '../../api.yml#/components/schemas/Group'
totalCount:
type: number
type: integer
'400':
$ref: '../../api.yml#/components/responses/BadRequest'
'401':
Expand Down
4 changes: 2 additions & 2 deletions src/openapi/paths/groups/members.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ collectionMethods:
- $ref: '../../api.yml#/components/parameters/sort'
responses:
'200':
description: Success
description: OK
content:
application/json:
schema:
Expand All @@ -21,7 +21,7 @@ collectionMethods:
items:
$ref: '../../api.yml#/components/schemas/GroupMember'
totalCount:
type: number
type: integer
'400':
$ref: '../../api.yml#/components/responses/BadRequest'
'401':
Expand Down
132 changes: 2 additions & 130 deletions src/openapi/paths/jobs/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ collectionMethods:
- $ref: '../../api.yml#/components/parameters/sort'
responses:
'200':
description: Success
description: OK
content:
application/json:
schema:
Expand All @@ -21,7 +21,7 @@ collectionMethods:
aggregations:
type: object
totalCount:
type: number
type: integer
'400':
$ref: '../../api.yml#/components/responses/BadRequest'
'401':
Expand All @@ -30,131 +30,3 @@ collectionMethods:
$ref: '../../api.yml#/components/responses/Forbidden'
'500':
$ref: '../../api.yml#/components/responses/ServerError'

# post:
# tags:
# - Job
# summary: Create a new person
# requestBody:
# content:
# application/json:
# schema:
# title: CreatePerson
# type: object
# required:
# - lastName
# allOf:
# - $ref: '../../api.yml#/components/schemas/PersonBulkInsertPayload'
# responses:
# '201':
# description: Created
# content:
# application/json:
# schema:
# $ref: '../../api.yml#/components/schemas/Person'
# '400':
# $ref: '../../api.yml#/components/responses/BadRequest'
# '401':
# $ref: '../../api.yml#/components/responses/Unauthorized'
# '403':
# $ref: '../../api.yml#/components/responses/Forbidden'
# '500':
# $ref: '../../api.yml#/components/responses/ServerError'

# documentMethods:
# get:
# tags:
# - Persons
# summary: Get a person by ID
# parameters:
# - $ref: '../../api.yml#/components/parameters/personId'
# responses:
# '200':
# description: OK
# content:
# application/json:
# schema:
# $ref: '../../api.yml#/components/schemas/Person'
# '401':
# $ref: '../../api.yml#/components/responses/Unauthorized'
# '403':
# $ref: '../../api.yml#/components/responses/Forbidden'
# '404':
# $ref: '../../api.yml#/components/responses/NotFound'
# '500':
# $ref: '../../api.yml#/components/responses/ServerError'


# patch:
# tags:
# - Persons
# summary: Update a person by ID
# parameters:
# - $ref: '../../api.yml#/components/parameters/personId'
# requestBody:
# content:
# application/json:
# schema:
# $ref: '../../api.yml#/components/schemas/PersonPayload'
# responses:
# '200':
# description: OK
# content:
# application/json:
# schema:
# $ref: '../../api.yml#/components/schemas/Person'
# '400':
# $ref: '../../api.yml#/components/responses/BadRequest'
# '401':
# $ref: '../../api.yml#/components/responses/Unauthorized'
# '403':
# $ref: '../../api.yml#/components/responses/Forbidden'
# '404':
# $ref: '../../api.yml#/components/responses/NotFound'
# '500':
# $ref: '../../api.yml#/components/responses/ServerError'

# delete:
# tags:
# - Persons
# summary: Delete a person by ID
# parameters:
# - $ref: '../../api.yml#/components/parameters/personId'
# responses:
# '204':
# description: No content
# '401':
# $ref: '../../api.yml#/components/responses/Unauthorized'
# '403':
# $ref: '../../api.yml#/components/responses/Forbidden'
# '404':
# $ref: '../../api.yml#/components/responses/NotFound'
# '500':
# $ref: '../../api.yml#/components/responses/ServerError'

# put:
# tags:
# - Persons
# summary: Create a new person with ID
# parameters:
# - $ref: '../../api.yml#/components/parameters/personId'
# requestBody:
# content:
# application/json:
# schema:
# $ref: '../../api.yml#/components/schemas/PersonPayload'
# responses:
# '201':
# description: Created
# content:
# application/json:
# schema:
# $ref: '../../api.yml#/components/schemas/Person'
# '400':
# $ref: '../../api.yml#/components/responses/BadRequest'
# '401':
# $ref: '../../api.yml#/components/responses/Unauthorized'
# '403':
# $ref: '../../api.yml#/components/responses/Forbidden'
# '500':
# $ref: '../../api.yml#/components/responses/ServerError'
4 changes: 2 additions & 2 deletions src/openapi/paths/journals/journals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ collectionMethods:
- $ref: '../../api.yml#/components/parameters/sort'
responses:
'200':
description: Success
description: OK
content:
application/json:
schema:
Expand All @@ -21,7 +21,7 @@ collectionMethods:
items:
type: object
totalCount:
type: number
type: integer
'400':
$ref: '../../api.yml#/components/responses/BadRequest'
'401':
Expand Down
4 changes: 2 additions & 2 deletions src/openapi/paths/legalcategories/legalcategories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ collectionMethods:
- $ref: '../../api.yml#/components/parameters/sort'
responses:
'200':
description: Success
description: OK
content:
application/json:
schema:
Expand All @@ -21,7 +21,7 @@ collectionMethods:
items:
$ref: '../../api.yml#/components/schemas/LegalCategory'
totalCount:
type: number
type: integer
'400':
$ref: '../../api.yml#/components/responses/BadRequest'
'401':
Expand Down
2 changes: 1 addition & 1 deletion src/openapi/paths/officialtexts/officialtexts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ collectionMethods:
items:
$ref: '../../api.yml#/components/schemas/OfficialText'
totalCount:
type: number
type: integer
'400':
$ref: '../../api.yml#/components/responses/BadRequest'
'401':
Expand Down
2 changes: 1 addition & 1 deletion src/openapi/paths/persons/identifiers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ documentMethods:
- $ref: '../../api.yml#/components/parameters/identifierId'
responses:
'200':
description: Success
description: OK
content:
application/json:
schema:
Expand Down
4 changes: 2 additions & 2 deletions src/openapi/paths/persons/persons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ collectionMethods:
- $ref: '../../api.yml#/components/parameters/sort'
responses:
'200':
description: Success
description: OK
content:
application/json:
schema:
Expand All @@ -21,7 +21,7 @@ collectionMethods:
items:
$ref: '../../api.yml#/components/schemas/Person'
totalCount:
type: number
type: integer
'400':
$ref: '../../api.yml#/components/responses/BadRequest'
'401':
Expand Down
2 changes: 1 addition & 1 deletion src/openapi/paths/press/press.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ documentMethods:
- $ref: '../../api.yml#/components/parameters/pressId'
responses:
'200':
description: Success
description: OK
content:
application/json:
schema:
Expand Down
2 changes: 1 addition & 1 deletion src/openapi/paths/prizes/identifiers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ documentMethods:
- $ref: '../../api.yml#/components/parameters/identifierId'
responses:
'200':
description: Success
description: OK
content:
application/json:
schema:
Expand Down
2 changes: 1 addition & 1 deletion src/openapi/paths/prizes/prizes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ documentMethods:
- $ref: '../../api.yml#/components/parameters/prizeId'
responses:
'200':
description: Success
description: OK
content:
application/json:
schema:
Expand Down
Loading

0 comments on commit 96fd9ef

Please sign in to comment.