Skip to content

Commit 2917aa5

Browse files
committed
Merge remote-tracking branch 'origin/lab-1-openapi-actions' into lab-1-openapi-actions
2 parents 423e14a + 153860e commit 2917aa5

File tree

2 files changed

+19
-15
lines changed
  • matchmaker/api/src/main/resources/static/openapi
  • people/api/src/main/resources/static/openapi

2 files changed

+19
-15
lines changed

matchmaker/api/src/main/resources/static/openapi/api.yml

+4
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ paths:
142142
tags: [SOA]
143143
summary: Reset attitudes
144144
description: Removes attitudes from the given person
145+
security:
146+
- bearerAuth: [ADMIN]
145147
parameters:
146148
- name: source_id
147149
in: query
@@ -207,6 +209,8 @@ paths:
207209
tags: [SOA]
208210
summary: Get attitudes statistics
209211
description: Returns like/skip counters for each person
212+
security:
213+
- bearerAuth: [ADMIN]
210214
responses:
211215
200:
212216
description: OK

people/api/src/main/resources/static/openapi/api.yml

+15-15
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ info:
55
servers:
66
- url: /api/v1
77
security:
8-
- bearerAuth: []
8+
- bearerAuth: [USER, ADMIN]
99
paths:
1010
/monitoring/healthcheck:
1111
get:
@@ -172,7 +172,18 @@ paths:
172172
schema:
173173
type: array
174174
items:
175-
$ref: "#/components/schemas/PersonSortingKey"
175+
type: string
176+
enum:
177+
- first_name
178+
- last_name
179+
- height
180+
- birthday
181+
- updated
182+
- -first_name
183+
- -last_name
184+
- -height
185+
- -birthday
186+
- -updated
176187
uniqueItems: true
177188
responses:
178189
200:
@@ -285,6 +296,8 @@ paths:
285296
tags: [People]
286297
summary: Delete person by id
287298
description: Deletes a person with a given id forever?
299+
security:
300+
- bearerAuth: [ADMIN]
288301
parameters:
289302
- name: person_id
290303
in: path
@@ -445,19 +458,6 @@ components:
445458
- id
446459
- update_moment
447460
- $ref: "#/components/schemas/PersonDraft"
448-
PersonSortingKey:
449-
type: string
450-
enum:
451-
- first_name
452-
- last_name
453-
- height
454-
- birthday
455-
- updated
456-
- -first_name
457-
- -last_name
458-
- -height
459-
- -birthday
460-
- -updated
461461
ZodiacSign:
462462
type: string
463463
description: Astrological sign, caclulated based on a birthday

0 commit comments

Comments
 (0)