Skip to content

Commit

Permalink
Automated commit by github action: 10836555219
Browse files Browse the repository at this point in the history
  • Loading branch information
developer-relations-sp committed Sep 12, 2024
1 parent bab8dee commit 28a9778
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 0 deletions.
3 changes: 3 additions & 0 deletions static/api-specs/nerm/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ paths:
$ref: "./paths/role.yaml"
/roles/{id}:
$ref: "./paths/roles_id.yaml"
# System Roles
/system_roles:
$ref: "./paths/system_roles.yaml"
# Permissions
/permissions:
$ref: "./paths/permissions.yaml"
Expand Down
16 changes: 16 additions & 0 deletions static/api-specs/nerm/paths/system_roles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
get:
summary: Get system roles
operationId: getSystemRoles
description: This endpoint can retrieve system roles from NERM. Optionally you can provide parameters to filter results.
tags:
- system roles
parameters:
- $ref: "../parameters/query/query.yaml"
- $ref: "../parameters/query/metadata.yaml"
responses:
'200':
$ref: "../responses/System_Roles_Meta.yaml"
'400':
$ref: "../responses/400.yaml"
'500':
$ref: "../responses/500.yaml"
12 changes: 12 additions & 0 deletions static/api-specs/nerm/responses/System_Roles_Meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: Expected response to a valid request
content:
application/json:
schema:
type: object
properties:
system_roles:
type: array
items:
$ref: '../schemas/GET/SystemRole.yaml'
_metadata:
$ref: '../schemas/Metadata.yaml'
21 changes: 21 additions & 0 deletions static/api-specs/nerm/schemas/GET/SystemRole.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
type: object
properties:
id:
type: string
format: uuid
description: The unique identifier for the object
example: 2e06b876-f456-473d-bd65-b6435e0b6b2d
readOnly: true
uid:
type: string
description: The user identifier for the object
minLength: 32
maxLength: 32
readOnly: true
enum: [profile_contributor, profile_owner]
example: "profile_contributor"
name:
description: The name of the role
type: string
enum: [Profile Contributor, Profile Owner]
example: "Profile Contributor"
6 changes: 6 additions & 0 deletions static/api-specs/nerm/schemas/GET/SystemRoles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: object
properties:
system_roles:
type: array
items:
$ref: '../GET/SystemRole.yaml'

0 comments on commit 28a9778

Please sign in to comment.