Skip to content

Commit d52ccc0

Browse files
author
Gergő Papp-Szentannai
authored
Merge pull request #85 from gergo-papp/remove-whitelisted-apis
Move administrative routes that require whitelisted API keys under a different tag, at the end of list
2 parents 436cc00 + 3af2512 commit d52ccc0

File tree

2 files changed

+40
-40
lines changed

2 files changed

+40
-40
lines changed

auth/niauth.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,6 @@ paths:
3030
default:
3131
$ref: '#/responses/Error'
3232

33-
/session-keys:
34-
post:
35-
tags:
36-
- keys
37-
summary: Creates temporary API Keys
38-
description: Create a temporary session key which is valid for 1 hour. The caller needs a whitelisted API key to issue session keys.
39-
operationId: create-session-key
40-
parameters:
41-
- $ref: '#/parameters/CreateSessionKeyRequest'
42-
responses:
43-
200:
44-
$ref: '#/responses/CreateSessionKeyResponse'
45-
400:
46-
$ref: '#/responses/ValidationError'
47-
401:
48-
$ref: '#/responses/Unauthorized'
49-
default:
50-
$ref: '#/responses/Error'
51-
5233
/keys:
5334
get:
5435
tags:
@@ -409,6 +390,25 @@ paths:
409390
default:
410391
$ref: '#/responses/Error'
411392

393+
/session-keys:
394+
post:
395+
tags:
396+
- whitelisted operations
397+
summary: Creates temporary API Keys
398+
description: Create a temporary session key which is valid for 1 hour. The caller needs a whitelisted API key to issue session keys.
399+
operationId: create-session-key
400+
parameters:
401+
- $ref: '#/parameters/CreateSessionKeyRequest'
402+
responses:
403+
200:
404+
$ref: '#/responses/CreateSessionKeyResponse'
405+
400:
406+
$ref: '#/responses/ValidationError'
407+
401:
408+
$ref: '#/responses/Unauthorized'
409+
default:
410+
$ref: '#/responses/Error'
411+
412412
definitions:
413413
AuthStatement:
414414
type: object

user/niuser.yaml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,6 @@ securityDefinitions:
1515
security:
1616
- ApiKeyAuth: []
1717
paths:
18-
'/orgs/{name}':
19-
get:
20-
tags:
21-
- orgs
22-
summary: 'Get organization'
23-
operationId: get-org
24-
description: Returns the organization with the given name
25-
parameters:
26-
- in: path
27-
required: true
28-
name: name
29-
description: The org name, e.g. 'SystemLink Server'
30-
type: string
31-
responses:
32-
200:
33-
$ref: '#/responses/GetOrgResponse'
34-
404:
35-
$ref: '#/responses/NotFound'
36-
default:
37-
$ref: '#/responses/Error'
38-
3918
'/users/query':
4019
post:
4120
tags:
@@ -303,6 +282,27 @@ paths:
303282
default:
304283
$ref: '#/responses/Error'
305284

285+
'/orgs/{name}':
286+
get:
287+
tags:
288+
- whitelisted operations
289+
summary: 'Get organization'
290+
operationId: get-org
291+
description: Returns the organization with the given name. The caller needs a whitelisted API key to read organizations.
292+
parameters:
293+
- in: path
294+
required: true
295+
name: name
296+
description: The org name, e.g. 'SystemLink Server'
297+
type: string
298+
responses:
299+
200:
300+
$ref: '#/responses/GetOrgResponse'
301+
404:
302+
$ref: '#/responses/NotFound'
303+
default:
304+
$ref: '#/responses/Error'
305+
306306
'/websocket':
307307
get:
308308
tags:

0 commit comments

Comments
 (0)