Skip to content

Commit fe046ae

Browse files
author
Gergő Papp-Szentannai
committed
Revert "Remove administrative routes that require whitelisted API keys"
This reverts commit 735a03c.
1 parent 735a03c commit fe046ae

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

auth/niauth.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,25 @@ 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+
3554
/keys:
3655
get:
3756
tags:

user/niuser.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,27 @@ 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+
2041
'/users/query':
2142
post:
2243
tags:

0 commit comments

Comments
 (0)