mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Apply feedback to openapi.yml
This commit is contained in:
parent
90af2ef6ab
commit
d6d4220a17
|
@ -7,16 +7,14 @@ info:
|
||||||
contact:
|
contact:
|
||||||
email: hello@n8n.io
|
email: hello@n8n.io
|
||||||
license:
|
license:
|
||||||
name: Apache 2.0 with Commons Clause
|
name: Sustainable Use License
|
||||||
url: https://github.com/n8n-io/n8n/blob/master/packages/cli/LICENSE.md
|
url: https://github.com/n8n-io/n8n/blob/master/packages/cli/LICENSE.md
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
externalDocs:
|
externalDocs:
|
||||||
description: Find out more about Swagger
|
description: n8n API documentation
|
||||||
url: http://swagger.io
|
url: https://docs.n8n.io/api/
|
||||||
servers:
|
servers:
|
||||||
# Added by API Auto Mocking Plugin
|
# Added by API Auto Mocking Plugin
|
||||||
- description: SwaggerHub API Auto Mocking
|
|
||||||
url: https://virtserver.swaggerhub.com/RicardoE105/n8n/1.0.0
|
|
||||||
- url: /api/v1
|
- url: /api/v1
|
||||||
tags:
|
tags:
|
||||||
- name: users
|
- name: users
|
||||||
|
@ -32,11 +30,11 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- users
|
- users
|
||||||
summary: Retrieve all users
|
summary: Retrieve all users
|
||||||
description: Retrieve all users from your instance. Only available for the instance owner
|
description: Retrieve all users from your instance. Only available for the instance owner.
|
||||||
parameters:
|
parameters:
|
||||||
- name: limit
|
- name: limit
|
||||||
in: query
|
in: query
|
||||||
description: The maximum number of items to return
|
description: The maximum number of items to return.
|
||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
type: number
|
type: number
|
||||||
|
@ -44,10 +42,9 @@ paths:
|
||||||
default: 100
|
default: 100
|
||||||
- name: cursor
|
- name: cursor
|
||||||
in: query
|
in: query
|
||||||
description: Paginate through users by setting the cursor parameter to a nextCursor attribute returned by a previous request's response. Default value fetches the first "page" of the collection. See pagination for more detail
|
description: Paginate through users by setting the cursor parameter to a nextCursor attribute returned by a previous request's response. Default value fetches the first "page" of the collection. See pagination for more detail.
|
||||||
required: false
|
required: false
|
||||||
style: form
|
style: form
|
||||||
explode: true
|
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
example: MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDA
|
example: MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDA
|
||||||
|
@ -55,15 +52,14 @@ paths:
|
||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
style: form
|
style: form
|
||||||
explode: true
|
description: Whether to include the role information the user object.
|
||||||
description: Whether to include the role information the user object
|
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
example: false
|
example: false
|
||||||
default: false
|
default: false
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: Successful operation
|
description: Operation successful.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
@ -83,7 +79,7 @@ paths:
|
||||||
description: Invites a user to your instance. Only available for the instance owner.
|
description: Invites a user to your instance. Only available for the instance owner.
|
||||||
operationId: createUser
|
operationId: createUser
|
||||||
requestBody:
|
requestBody:
|
||||||
description: Created user object
|
description: Created user object.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
@ -118,7 +114,7 @@ paths:
|
||||||
parameters:
|
parameters:
|
||||||
- name: identifier
|
- name: identifier
|
||||||
in: path
|
in: path
|
||||||
description: The ID or email of the user
|
description: The ID or email of the user.
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
@ -131,7 +127,7 @@ paths:
|
||||||
example: true
|
example: true
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: Successful operation
|
description: Operation successful.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
@ -153,14 +149,14 @@ paths:
|
||||||
parameters:
|
parameters:
|
||||||
- name: identifier
|
- name: identifier
|
||||||
in: path
|
in: path
|
||||||
description: The name that needs to be deleted
|
description: The ID if the user to be deleted.
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
format: identifier
|
format: identifier
|
||||||
- name: transferId
|
- name: transferId
|
||||||
in: query
|
in: query
|
||||||
description: ID of the user to transfer workflows and credentials to.
|
description: ID of the user to transfer workflows and credentials to. Must not be equal to the to-be-deleted user.
|
||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
@ -172,7 +168,7 @@ paths:
|
||||||
example: true
|
example: true
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: Successful operation
|
description: Operation successful.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
@ -212,31 +208,31 @@ components:
|
||||||
email:
|
email:
|
||||||
type: string
|
type: string
|
||||||
format: email
|
format: email
|
||||||
example: jhon.doe@company.com
|
example: john.doe@company.com
|
||||||
firstName:
|
firstName:
|
||||||
maxLength: 32
|
maxLength: 32
|
||||||
type: string
|
type: string
|
||||||
description: User's first name
|
description: User's first name
|
||||||
readOnly: true
|
readOnly: true
|
||||||
example: jhon
|
example: john
|
||||||
lastName:
|
lastName:
|
||||||
maxLength: 32
|
maxLength: 32
|
||||||
type: string
|
type: string
|
||||||
description: User's last name
|
description: User's last name
|
||||||
readOnly: true
|
readOnly: true
|
||||||
example: doe
|
example: Doe
|
||||||
isPending:
|
isPending:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Whether the user finished setting up the invitation or not
|
description: Whether the user finished setting up their account in response to the invitation (true) or not (false).
|
||||||
readOnly: true
|
readOnly: true
|
||||||
createdAt:
|
createdAt:
|
||||||
type: string
|
type: string
|
||||||
description: Time the user was created
|
description: Time the user was created.
|
||||||
format: date-time
|
format: date-time
|
||||||
readOnly: true
|
readOnly: true
|
||||||
updatedAt:
|
updatedAt:
|
||||||
type: string
|
type: string
|
||||||
description: Last time the user was updaded
|
description: Last time the user was updated.
|
||||||
format: date-time
|
format: date-time
|
||||||
readOnly: true
|
readOnly: true
|
||||||
globalRole:
|
globalRole:
|
||||||
|
@ -270,17 +266,17 @@ components:
|
||||||
example: global
|
example: global
|
||||||
createdAt:
|
createdAt:
|
||||||
type: string
|
type: string
|
||||||
description: Time the role was created
|
description: Time the role was created.
|
||||||
format: date-time
|
format: date-time
|
||||||
readOnly: true
|
readOnly: true
|
||||||
updatedAt:
|
updatedAt:
|
||||||
type: string
|
type: string
|
||||||
description: Last time the role was updaded
|
description: Last time the role was updaded.
|
||||||
format: date-time
|
format: date-time
|
||||||
readOnly: true
|
readOnly: true
|
||||||
responses:
|
responses:
|
||||||
NotFound:
|
NotFound:
|
||||||
description: The specified resource was not found
|
description: The specified resource was not found.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
|
Loading…
Reference in a new issue