Skip to content

Commit 9650dde

Browse files
authored
NOISSUE - Update API docs (#3211)
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
1 parent d02747a commit 9650dde

File tree

5 files changed

+43
-127
lines changed

5 files changed

+43
-127
lines changed

apidocs/openapi/channels.yaml

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ paths:
9393
- $ref: "#/components/parameters/Status"
9494
- $ref: "#/components/parameters/ChannelName"
9595
- $ref: "#/components/parameters/ID"
96-
- $ref: "#/components/parameters/Actions"
97-
- $ref: "#/components/parameters/RoleID"
98-
- $ref: "#/components/parameters/RoleName"
96+
- $ref: "./schemas/roles.yaml#/components/parameters/ActionsQuery"
97+
- $ref: "./schemas/roles.yaml#/components/parameters/RoleIDQuery"
98+
- $ref: "./schemas/roles.yaml#/components/parameters/RoleNameQuery"
9999
- $ref: "#/components/parameters/AccessType"
100100
- $ref: "#/components/parameters/OnlyTotal"
101101
- $ref: "#/components/parameters/Client"
@@ -888,34 +888,6 @@ components:
888888
required: false
889889
example: bb7edb32-2eac-4aad-aebe-ed96fe073879
890890

891-
Actions:
892-
name: actions
893-
description: Lists channels that the user has the given actions on. Multiple actions can be specified separated by comma.
894-
in: query
895-
schema:
896-
type: string
897-
required: false
898-
example: "action1,action2"
899-
900-
RoleID:
901-
name: role_id
902-
description: List channels that the user has the given role ID on.
903-
in: query
904-
schema:
905-
type: string
906-
format: uuid
907-
required: false
908-
example: bb7edb32-2eac-4aad-aebe-ed96fe073879
909-
910-
RoleName:
911-
name: role_name
912-
description: List channels that the user has the given role name on.
913-
in: query
914-
schema:
915-
type: string
916-
required: false
917-
example: admin
918-
919891
AccessType:
920892
name: access_type
921893
description: Type of access the user has on the channel.

apidocs/openapi/clients.yaml

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ paths:
9191
- $ref: "#/components/parameters/ClientName"
9292
- $ref: "#/components/parameters/Tags"
9393
- $ref: "#/components/parameters/ID"
94-
- $ref: "#/components/parameters/Actions"
95-
- $ref: "#/components/parameters/RoleID"
96-
- $ref: "#/components/parameters/RoleName"
94+
- $ref: "./schemas/roles.yaml#/components/parameters/ActionsQuery"
95+
- $ref: "./schemas/roles.yaml#/components/parameters/RoleIDQuery"
96+
- $ref: "./schemas/roles.yaml#/components/parameters/RoleNameQuery"
9797
- $ref: "#/components/parameters/AccessType"
9898
- $ref: "#/components/parameters/OnlyTotal"
9999
- $ref: "#/components/parameters/Channel"
@@ -1282,34 +1282,6 @@ components:
12821282
required: false
12831283
example: bb7edb32-2eac-4aad-aebe-ed96fe073879
12841284

1285-
Actions:
1286-
name: actions
1287-
description: Lists clients that the user has the given actions on. Multiple actions can be specified separated by comma.
1288-
in: query
1289-
schema:
1290-
type: string
1291-
required: false
1292-
example: "action1,action2"
1293-
1294-
RoleID:
1295-
name: role_id
1296-
description: List clients that the user has the given role ID on.
1297-
in: query
1298-
schema:
1299-
type: string
1300-
format: uuid
1301-
required: false
1302-
example: bb7edb32-2eac-4aad-aebe-ed96fe073879
1303-
1304-
RoleName:
1305-
name: role_name
1306-
description: List clients that the user has the given role name on.
1307-
in: query
1308-
schema:
1309-
type: string
1310-
required: false
1311-
example: admin
1312-
13131285
AccessType:
13141286
name: access_type
13151287
description: Type of access the user has on the client.

apidocs/openapi/domains.yaml

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ paths:
7878
- $ref: "#/components/parameters/Metadata"
7979
- $ref: "#/components/parameters/Status"
8080
- $ref: "#/components/parameters/DomainName"
81-
- $ref: "#/components/parameters/Actions"
82-
- $ref: "#/components/parameters/RoleID"
83-
- $ref: "#/components/parameters/RoleName"
81+
- $ref: "./schemas/roles.yaml#/components/parameters/ActionsQuery"
82+
- $ref: "./schemas/roles.yaml#/components/parameters/RoleIDQuery"
83+
- $ref: "./schemas/roles.yaml#/components/parameters/RoleNameQuery"
8484
- $ref: "#/components/parameters/AccessType"
8585
- $ref: "#/components/parameters/OnlyTotal"
8686
tags:
@@ -1260,31 +1260,6 @@ components:
12601260
- desc
12611261
required: false
12621262
example: desc
1263-
Actions:
1264-
name: actions
1265-
description: Lists domains that the user has the given actions on. Multiple actions can be specified separated by comma.
1266-
in: query
1267-
schema:
1268-
type: string
1269-
required: false
1270-
example: "action1,action2"
1271-
RoleID:
1272-
name: role_id
1273-
description: List domains that the user has the given role ID on.
1274-
in: query
1275-
schema:
1276-
type: string
1277-
format: uuid
1278-
required: false
1279-
example: bb7edb32-2eac-4aad-aebe-ed96fe073879
1280-
RoleName:
1281-
name: role_name
1282-
description: List domains that the user has the given role name on.
1283-
in: query
1284-
schema:
1285-
type: string
1286-
required: false
1287-
example: admin
12881263
AccessType:
12891264
name: access_type
12901265
description: Type of access the user has on the domain.

apidocs/openapi/groups.yaml

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ paths:
9797
- $ref: "#/components/parameters/RootGroup"
9898
- $ref: "#/components/parameters/Status"
9999
- $ref: "#/components/parameters/ID"
100-
- $ref: "#/components/parameters/Actions"
101-
- $ref: "#/components/parameters/RoleID"
102-
- $ref: "#/components/parameters/RoleName"
100+
- $ref: "./schemas/roles.yaml#/components/parameters/ActionsQuery"
101+
- $ref: "./schemas/roles.yaml#/components/parameters/RoleIDQuery"
102+
- $ref: "./schemas/roles.yaml#/components/parameters/RoleNameQuery"
103103
- $ref: "#/components/parameters/AccessType"
104104
- $ref: "#/components/parameters/OnlyTotal"
105105
responses:
@@ -1569,36 +1569,8 @@ components:
15691569
format: uuid
15701570
required: false
15711571
example: bb7edb32-2eac-4aad-aebe-ed96fe073879
1572-
1573-
Actions:
1574-
name: actions
1575-
description: Lists groups that the user has the given actions on. Multiple actions can be specified separated by comma.
1576-
in: query
1577-
schema:
1578-
type: string
1579-
required: false
1580-
example: "action1,action2"
1581-
1582-
RoleID:
1583-
name: role_id
1584-
description: List groups that the user has the given role ID on.
1585-
in: query
1586-
schema:
1587-
type: string
1588-
format: uuid
1589-
required: false
1590-
example: bb7edb32-2eac-4aad-aebe-ed96fe073879
1591-
1592-
RoleName:
1593-
name: role_name
1594-
description: List groups that the user has the given role name on.
1595-
in: query
1596-
schema:
1597-
type: string
1598-
required: false
1599-
example: admin
16001572

1601-
AccessType:
1573+
AccessType:
16021574
name: access_type
16031575
description: Type of access the user has on the group.
16041576
in: query

apidocs/openapi/schemas/roles.yaml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ components:
66
NewRole:
77
type: object
88
properties:
9-
role_id:
9+
id:
1010
type: string
1111
format: uuid
1212
example: bb7edb32-2eac-4aad-aebe-ed96fe073879
1313
description: Role unique identifier.
14-
role_name:
14+
name:
1515
type: string
1616
description: Role's name.
1717
example: "roleName"
@@ -44,12 +44,12 @@ components:
4444
Role:
4545
type: object
4646
properties:
47-
role_id:
47+
id:
4848
type: string
4949
format: uuid
5050
example: bb7edb32-2eac-4aad-aebe-ed96fe073879
5151
description: Role unique identifier.
52-
role_name:
52+
name:
5353
type: string
5454
description: Role's name.
5555
example: "roleName"
@@ -82,7 +82,7 @@ components:
8282
CreateRoleObj:
8383
type: object
8484
properties:
85-
role_name:
85+
name:
8686
type: string
8787
description: Role's name.
8888
example: "roleName"
@@ -270,6 +270,31 @@ components:
270270
type: string
271271
required: true
272272
example: "roleID"
273+
RoleIDQuery:
274+
name: role_id
275+
description: Filter by role ID.
276+
in: query
277+
schema:
278+
type: string
279+
format: uuid
280+
required: false
281+
example: bb7edb32-2eac-4aad-aebe-ed96fe073879
282+
RoleNameQuery:
283+
name: role_name
284+
description: Filter by role name.
285+
in: query
286+
schema:
287+
type: string
288+
required: false
289+
example: admin
290+
ActionsQuery:
291+
name: actions
292+
description: Filter by actions. Multiple actions can be specified separated by comma.
293+
in: query
294+
schema:
295+
type: string
296+
required: false
297+
example: "action1,action2"
273298

274299
requestBodies:
275300
CreateRoleReq:

0 commit comments

Comments
 (0)