Skip to content

Commit a801b3c

Browse files
authored
Merge pull request #60 from jordanjennings/get-org-client-details
Add GET /organizations/{orgId}/clients/{clientId}
2 parents eff7406 + 566b9ad commit a801b3c

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

spec/org.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,29 @@ paths:
7878
'204': # status code
7979
$ref: '#/components/responses/SuccessDeleteBG'
8080

81+
/organizations/{orgId}/clients/{clientId}:
82+
get:
83+
operationId: getClientCredentials
84+
description: Get client ID and client secret
85+
parameters:
86+
- name: orgId
87+
in: path
88+
description: The ID of the organization in GUID format
89+
required: true
90+
schema:
91+
type: string
92+
- name: clientId
93+
in: path
94+
description: The client ID of the client
95+
required: true
96+
schema:
97+
type: string
98+
responses:
99+
'401':
100+
$ref: '#/components/responses/UnauthorizedError'
101+
'200': # status code
102+
$ref: '#/components/responses/SuccessGetClient'
103+
81104
/cs/organizations/{orgId}/usage:
82105
parameters:
83106
- in: path
@@ -138,6 +161,12 @@ components:
138161
application/json:
139162
schema:
140163
$ref: '#/components/schemas/BGCore'
164+
SuccessGetClient:
165+
description: Success response
166+
content:
167+
application/json:
168+
schema:
169+
$ref: '#/components/schemas/Client'
141170
SuccessGetUsage:
142171
description: Success response
143172
content:
@@ -1317,3 +1346,27 @@ components:
13171346
description: Load balancer workers consumed
13181347
title: loadbalancerWorkersConsumed
13191348
default: 0
1349+
1350+
Client:
1351+
type: object
1352+
properties:
1353+
client_id:
1354+
type: string
1355+
title: Client ID
1356+
client_secret:
1357+
type: string
1358+
title: Client Secret
1359+
name:
1360+
type: string
1361+
title: Credentials name
1362+
org_id:
1363+
type: string
1364+
title: Organization ID
1365+
user_id:
1366+
type: string
1367+
title:
1368+
grant_types:
1369+
type: array
1370+
title: Grants for the client credentials
1371+
items:
1372+
type: string

0 commit comments

Comments
 (0)