Skip to content

Commit

Permalink
feat: userroles api spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Chakravarthy7102 committed Oct 12, 2023
1 parent bf2bd7e commit 623c059
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions api_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ tags:
description: APIs related to recording telemetry from the dashboard
- name: "Multitenancy"
description: APIs related to multitenancy
- name: "User Roles and Permissions"
description: APIs related to user roles and permisssions

paths:
/signin:
Expand Down Expand Up @@ -1267,6 +1269,38 @@ paths:
properties:
enabled:
type: boolean
/userroles/list:
get:
tags:
- User Roles and Permissions
summary: Get all created roles
responses:
200:
description: Success
content:
application/json:
schema:
oneOf:
- type: object
properties:
status:
type: string
default: "OK"
roles:
type: array
items:
type: string
example: ["admin", "user"]
- type: object
properties:
status:
type: string
default: "RECIPE_NOT_INITIALISED"
- type: object
properties:
status:
type: string
default: "NO_ROLES_FOUND"

servers:
# Added by API Auto Mocking Plugin
Expand Down

0 comments on commit 623c059

Please sign in to comment.