Skip to content

Commit 857bc8a

Browse files
committed
#1 Add ADMIN security for some endpoints
1 parent 6ee3c4b commit 857bc8a

File tree

2 files changed

+7
-1
lines changed
  • matchmaker/api/src/main/resources/static/openapi
  • people/api/src/main/resources/static/openapi

2 files changed

+7
-1
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

+3-1
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:
@@ -285,6 +285,8 @@ paths:
285285
tags: [People]
286286
summary: Delete person by id
287287
description: Deletes a person with a given id forever?
288+
security:
289+
- bearerAuth: [ADMIN]
288290
parameters:
289291
- name: person_id
290292
in: path

0 commit comments

Comments
 (0)