chore: Add Swagger docs for Platform APIs (#2349)
This commit is contained in:
20
swagger/paths/platform/users/create.yml
Normal file
20
swagger/paths/platform/users/create.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
tags:
|
||||
- Users
|
||||
operationId: create-a-user
|
||||
summary: Create a User
|
||||
description: Create a User
|
||||
security:
|
||||
- platformAppApiKey: []
|
||||
parameters:
|
||||
- name: data
|
||||
in: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/user_create_update_payload'
|
||||
responses:
|
||||
200:
|
||||
description: Success
|
||||
schema:
|
||||
$ref: '#/definitions/user'
|
||||
401:
|
||||
description: Unauthorized
|
||||
14
swagger/paths/platform/users/delete.yml
Normal file
14
swagger/paths/platform/users/delete.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
tags:
|
||||
- Users
|
||||
operationId: delete-a-user
|
||||
summary: Delete a User
|
||||
description: Delete a User
|
||||
security:
|
||||
- platformAppApiKey: []
|
||||
responses:
|
||||
200:
|
||||
description: Success
|
||||
401:
|
||||
description: Unauthorized
|
||||
404:
|
||||
description: The user does not exist
|
||||
21
swagger/paths/platform/users/login.yml
Normal file
21
swagger/paths/platform/users/login.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
get:
|
||||
tags:
|
||||
- Users
|
||||
operationId: get-sso-url-of-a-user
|
||||
summary: Get User SSO Link
|
||||
description: Get the sso link of a user
|
||||
security:
|
||||
- platformAppApiKey: []
|
||||
responses:
|
||||
200:
|
||||
description: Success
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
url:
|
||||
type: string
|
||||
description: SSO url to autenticate the user
|
||||
401:
|
||||
description: Unauthorized
|
||||
404:
|
||||
description: The given user does not exist
|
||||
16
swagger/paths/platform/users/show.yml
Normal file
16
swagger/paths/platform/users/show.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
tags:
|
||||
- Users
|
||||
operationId: get-details-of-a-user
|
||||
summary: Get an user details
|
||||
description: Get the details of an user
|
||||
security:
|
||||
- platformAppApiKey: []
|
||||
responses:
|
||||
200:
|
||||
description: Success
|
||||
schema:
|
||||
$ref: '#/definitions/user'
|
||||
401:
|
||||
description: Unauthorized
|
||||
404:
|
||||
description: The given user does not exist
|
||||
20
swagger/paths/platform/users/update.yml
Normal file
20
swagger/paths/platform/users/update.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
tags:
|
||||
- Users
|
||||
operationId: update-a-user
|
||||
summary: Update a user
|
||||
description: Update a user's attributes
|
||||
security:
|
||||
- platformAppApiKey: []
|
||||
parameters:
|
||||
- name: data
|
||||
in: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/user_create_update_payload'
|
||||
responses:
|
||||
200:
|
||||
description: Success
|
||||
schema:
|
||||
$ref: '#/definitions/user'
|
||||
401:
|
||||
description: Unauthorized
|
||||
Reference in New Issue
Block a user