mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 04:47:29 -08:00
fix(API): Correct credential schema for response in POST /credentials
(#11340)
This commit is contained in:
parent
695f6531f4
commit
f4958756b4
|
@ -18,7 +18,7 @@ post:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../schemas/credential.yml'
|
||||
$ref: '../schemas/create-credential-response.yml'
|
||||
'401':
|
||||
$ref: '../../../../shared/spec/responses/unauthorized.yml'
|
||||
'415':
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
required:
|
||||
- id
|
||||
- name
|
||||
- type
|
||||
- createdAt
|
||||
- updatedAt
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
readOnly: true
|
||||
example: vHxaz5UaCghVYl9C
|
||||
name:
|
||||
type: string
|
||||
example: John's Github account
|
||||
type:
|
||||
type: string
|
||||
example: github
|
||||
createdAt:
|
||||
type: string
|
||||
format: date-time
|
||||
readOnly: true
|
||||
example: '2022-04-29T11:02:29.842Z'
|
||||
updatedAt:
|
||||
type: string
|
||||
format: date-time
|
||||
readOnly: true
|
||||
example: '2022-04-29T11:02:29.842Z'
|
Loading…
Reference in a new issue