Skip to content

Commit 3af2512

Browse files
author
Gergő Papp-Szentannai
committed
Re-add whitelisted operations under a different tag, at the last position
1 parent fe046ae commit 3af2512

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
@@ -32,25 +32,6 @@ paths:
3232
default:
3333
$ref: '#/responses/Error'
3434

35-
/session-keys:
36-
post:
37-
tags:
38-
- keys
39-
summary: Creates temporary API Keys
40-
description: Create a temporary session key which is valid for 1 hour. The caller needs a whitelisted API key to issue session keys.
41-
operationId: create-session-key
42-
parameters:
43-
- $ref: '#/parameters/CreateSessionKeyRequest'
44-
responses:
45-
200:
46-
$ref: '#/responses/CreateSessionKeyResponse'
47-
400:
48-
$ref: '#/responses/ValidationError'
49-
401:
50-
$ref: '#/responses/Unauthorized'
51-
default:
52-
$ref: '#/responses/Error'
53-
5435
/keys:
5536
get:
5637
tags:
@@ -403,6 +384,25 @@ paths:
403384
default:
404385
$ref: '#/responses/Error'
405386

387+
/session-keys:
388+
post:
389+
tags:
390+
- whitelisted operations
391+
summary: Creates temporary API Keys
392+
description: Create a temporary session key which is valid for 1 hour. The caller needs a whitelisted API key to issue session keys.
393+
operationId: create-session-key
394+
parameters:
395+
- $ref: '#/parameters/CreateSessionKeyRequest'
396+
responses:
397+
200:
398+
$ref: '#/responses/CreateSessionKeyResponse'
399+
400:
400+
$ref: '#/responses/ValidationError'
401+
401:
402+
$ref: '#/responses/Unauthorized'
403+
default:
404+
$ref: '#/responses/Error'
405+
406406
definitions:
407407
AuthStatement:
408408
type: object

user/niuser.yaml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,6 @@ security:
1717
schemes:
1818
- https
1919
paths:
20-
'/orgs/{name}':
21-
get:
22-
tags:
23-
- orgs
24-
summary: 'Get organization'
25-
operationId: get-org
26-
description: Returns the organization with the given name
27-
parameters:
28-
- in: path
29-
required: true
30-
name: name
31-
description: The org name, e.g. 'SystemLink Server'
32-
type: string
33-
responses:
34-
200:
35-
$ref: '#/responses/GetOrgResponse'
36-
404:
37-
$ref: '#/responses/NotFound'
38-
default:
39-
$ref: '#/responses/Error'
40-
4120
'/users/query':
4221
post:
4322
tags:
@@ -280,6 +259,27 @@ paths:
280259
default:
281260
$ref: '#/responses/Error'
282261

262+
'/orgs/{name}':
263+
get:
264+
tags:
265+
- whitelisted operations
266+
summary: 'Get organization'
267+
operationId: get-org
268+
description: Returns the organization with the given name. The caller needs a whitelisted API key to read organizations.
269+
parameters:
270+
- in: path
271+
required: true
272+
name: name
273+
description: The org name, e.g. 'SystemLink Server'
274+
type: string
275+
responses:
276+
200:
277+
$ref: '#/responses/GetOrgResponse'
278+
404:
279+
$ref: '#/responses/NotFound'
280+
default:
281+
$ref: '#/responses/Error'
282+
283283
'/websocket':
284284
get:
285285
tags:

0 commit comments

Comments
 (0)