Skip to content

Commit 8f7dc2c

Browse files
committed
fix: Expand user permissions
1 parent 74b4950 commit 8f7dc2c

File tree

1 file changed

+20
-3
lines changed
  • backend/schema/paths/users/userID

1 file changed

+20
-3
lines changed

backend/schema/paths/users/userID/get.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
22
"operationId": "getUser",
33
"summary": "Get a user",
4-
"tags": ["users"],
4+
"tags": [
5+
"users"
6+
],
57
"security": [
68
{
7-
"bearerAuth": ["admin"]
9+
"bearerAuth": [
10+
"admin"
11+
]
812
}
913
],
1014
"parameters": [
@@ -26,6 +30,17 @@
2630
"required": true,
2731
"description": "User ID or 'me' for yourself",
2832
"example": 1
33+
},
34+
{
35+
"in": "query",
36+
"name": "expand",
37+
"description": "Expansions",
38+
"schema": {
39+
"type": "string",
40+
"enum": [
41+
"permissions"
42+
]
43+
}
2944
}
3045
],
3146
"responses": {
@@ -44,7 +59,9 @@
4459
"name": "Jamie Curnow",
4560
"nickname": "James",
4661
"avatar": "//www.gravatar.com/avatar/6193176330f8d38747f038c170ddb193?default=mm",
47-
"roles": ["admin"]
62+
"roles": [
63+
"admin"
64+
]
4865
}
4966
}
5067
},

0 commit comments

Comments
 (0)