mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 15:04:37 -04:00
Completing OpenAPI documentation for clients
This commit is contained in:
parent
eee5e84670
commit
162cbc96ac
@ -152,6 +152,8 @@ paths:
|
|||||||
$ref: "#/components/responses/403"
|
$ref: "#/components/responses/403"
|
||||||
422:
|
422:
|
||||||
$ref: "#/components/responses/422"
|
$ref: "#/components/responses/422"
|
||||||
|
5XX:
|
||||||
|
$ref: "#/components/responses/5XX"
|
||||||
default:
|
default:
|
||||||
$ref: "#/components/responses/default"
|
$ref: "#/components/responses/default"
|
||||||
/api/v1/refresh:
|
/api/v1/refresh:
|
||||||
@ -13479,6 +13481,12 @@ components:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#components/schemas/AuthenticationError'
|
$ref: '#components/schemas/AuthenticationError'
|
||||||
|
400:
|
||||||
|
description: 'Invalid user input'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#components/schemas/InvalidInputError'
|
||||||
|
|
||||||
429:
|
429:
|
||||||
description: 'Rate Limit Exceeded'
|
description: 'Rate Limit Exceeded'
|
||||||
@ -14002,8 +14010,34 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
|
RateLimiterError:
|
||||||
|
properties:
|
||||||
|
message:
|
||||||
|
description: 'Rate limit exceeded.'
|
||||||
|
type: string
|
||||||
|
example: 'Rate limit exceeded.'
|
||||||
|
errors:
|
||||||
|
properties:
|
||||||
|
value:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
InvalidInputError:
|
||||||
|
properties:
|
||||||
|
message:
|
||||||
|
description: 'Invalid input'
|
||||||
|
type: string
|
||||||
|
example: 'Invalid input'
|
||||||
|
errors:
|
||||||
|
properties:
|
||||||
|
value:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
Webhook:
|
Webhook:
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
@ -14351,6 +14385,10 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
example: Opnel5aKBz
|
example: Opnel5aKBz
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
contacts:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ClientContact'
|
||||||
user_id:
|
user_id:
|
||||||
description: 'The unique identifier of the user who created the client'
|
description: 'The unique identifier of the user who created the client'
|
||||||
type: string
|
type: string
|
||||||
@ -14365,10 +14403,6 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
example: Co7Vn3yLmW
|
example: Co7Vn3yLmW
|
||||||
readOnly: true
|
readOnly: true
|
||||||
contacts:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/ClientContact'
|
|
||||||
name:
|
name:
|
||||||
description: 'The name of the client company or organization'
|
description: 'The name of the client company or organization'
|
||||||
type: string
|
type: string
|
||||||
@ -14516,8 +14550,6 @@ components:
|
|||||||
format: integer
|
format: integer
|
||||||
example: '1628445631'
|
example: '1628445631'
|
||||||
readOnly: true
|
readOnly: true
|
||||||
settings:
|
|
||||||
$ref: '#/components/schemas/ClientSettings'
|
|
||||||
group_settings_id:
|
group_settings_id:
|
||||||
description: 'The group settings assigned to the client'
|
description: 'The group settings assigned to the client'
|
||||||
type: string
|
type: string
|
||||||
@ -14540,6 +14572,8 @@ components:
|
|||||||
type: number
|
type: number
|
||||||
example: 100
|
example: 100
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
settings:
|
||||||
|
$ref: '#/components/schemas/ClientSettings'
|
||||||
type: object
|
type: object
|
||||||
SystemLog:
|
SystemLog:
|
||||||
properties:
|
properties:
|
||||||
@ -15794,7 +15828,13 @@ components:
|
|||||||
example: '2'
|
example: '2'
|
||||||
type: object
|
type: object
|
||||||
CompanySettings:
|
CompanySettings:
|
||||||
|
required:
|
||||||
|
- currency_id
|
||||||
properties:
|
properties:
|
||||||
|
currency_id:
|
||||||
|
description: 'The default currency id'
|
||||||
|
type: string
|
||||||
|
example: true
|
||||||
timezone_id:
|
timezone_id:
|
||||||
description: 'The timezone id'
|
description: 'The timezone id'
|
||||||
type: string
|
type: string
|
||||||
@ -15815,10 +15855,6 @@ components:
|
|||||||
description: 'Toggles whether the currency symbol or code is shown'
|
description: 'Toggles whether the currency symbol or code is shown'
|
||||||
type: boolean
|
type: boolean
|
||||||
example: true
|
example: true
|
||||||
currency_id:
|
|
||||||
description: 'The default currency id'
|
|
||||||
type: string
|
|
||||||
example: true
|
|
||||||
payment_terms:
|
payment_terms:
|
||||||
description: '-1 sets no payment term, 0 sets payment due immediately, positive integers indicates payment terms in days'
|
description: '-1 sets no payment term, 0 sets payment due immediately, positive integers indicates payment terms in days'
|
||||||
type: integer
|
type: integer
|
||||||
@ -17177,8 +17213,6 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
example: false
|
example: false
|
||||||
readOnly: true
|
readOnly: true
|
||||||
settings:
|
|
||||||
$ref: '#/components/schemas/ClientSettings'
|
|
||||||
group_settings_id:
|
group_settings_id:
|
||||||
description: 'The group settings assigned to the client'
|
description: 'The group settings assigned to the client'
|
||||||
type: string
|
type: string
|
||||||
@ -17196,6 +17230,8 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
example: false
|
example: false
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
settings:
|
||||||
|
$ref: '#/components/schemas/ClientSettings'
|
||||||
type: object
|
type: object
|
||||||
Project:
|
Project:
|
||||||
type: object
|
type: object
|
||||||
@ -17525,7 +17561,13 @@ components:
|
|||||||
example: '134341234234'
|
example: '134341234234'
|
||||||
type: object
|
type: object
|
||||||
ClientSettings:
|
ClientSettings:
|
||||||
|
required:
|
||||||
|
- currency_id
|
||||||
properties:
|
properties:
|
||||||
|
currency_id:
|
||||||
|
description: 'The default currency id'
|
||||||
|
type: string
|
||||||
|
example: true
|
||||||
timezone_id:
|
timezone_id:
|
||||||
description: 'The timezone id'
|
description: 'The timezone id'
|
||||||
type: string
|
type: string
|
||||||
@ -17546,10 +17588,6 @@ components:
|
|||||||
description: 'Toggles whether the currency symbol or code is shown'
|
description: 'Toggles whether the currency symbol or code is shown'
|
||||||
type: boolean
|
type: boolean
|
||||||
example: true
|
example: true
|
||||||
currency_id:
|
|
||||||
description: 'The default currency id'
|
|
||||||
type: string
|
|
||||||
example: true
|
|
||||||
payment_terms:
|
payment_terms:
|
||||||
description: '-1 sets no payment term, 0 sets payment due immediately, positive integers indicates payment terms in days'
|
description: '-1 sets no payment term, 0 sets payment due immediately, positive integers indicates payment terms in days'
|
||||||
type: integer
|
type: integer
|
||||||
|
6
openapi/components/responses/400.yaml
Normal file
6
openapi/components/responses/400.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
400:
|
||||||
|
description: 'Invalid user input'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#components/schemas/InvalidInputError'
|
@ -247,8 +247,34 @@
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
|
RateLimiterError:
|
||||||
|
properties:
|
||||||
|
message:
|
||||||
|
description: 'Rate limit exceeded.'
|
||||||
|
type: string
|
||||||
|
example: 'Rate limit exceeded.'
|
||||||
|
errors:
|
||||||
|
properties:
|
||||||
|
value:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
InvalidInputError:
|
||||||
|
properties:
|
||||||
|
message:
|
||||||
|
description: 'Invalid input'
|
||||||
|
type: string
|
||||||
|
example: 'Invalid input'
|
||||||
|
errors:
|
||||||
|
properties:
|
||||||
|
value:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
Webhook:
|
Webhook:
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
|
@ -5,6 +5,10 @@
|
|||||||
type: string
|
type: string
|
||||||
example: Opnel5aKBz
|
example: Opnel5aKBz
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
contacts:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ClientContact'
|
||||||
user_id:
|
user_id:
|
||||||
description: 'The unique identifier of the user who created the client'
|
description: 'The unique identifier of the user who created the client'
|
||||||
type: string
|
type: string
|
||||||
@ -19,10 +23,6 @@
|
|||||||
type: string
|
type: string
|
||||||
example: Co7Vn3yLmW
|
example: Co7Vn3yLmW
|
||||||
readOnly: true
|
readOnly: true
|
||||||
contacts:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/ClientContact'
|
|
||||||
name:
|
name:
|
||||||
description: 'The name of the client company or organization'
|
description: 'The name of the client company or organization'
|
||||||
type: string
|
type: string
|
||||||
@ -170,8 +170,6 @@
|
|||||||
format: integer
|
format: integer
|
||||||
example: '1628445631'
|
example: '1628445631'
|
||||||
readOnly: true
|
readOnly: true
|
||||||
settings:
|
|
||||||
$ref: '#/components/schemas/ClientSettings'
|
|
||||||
group_settings_id:
|
group_settings_id:
|
||||||
description: 'The group settings assigned to the client'
|
description: 'The group settings assigned to the client'
|
||||||
type: string
|
type: string
|
||||||
@ -194,4 +192,6 @@
|
|||||||
type: number
|
type: number
|
||||||
example: 100
|
example: 100
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
settings:
|
||||||
|
$ref: '#/components/schemas/ClientSettings'
|
||||||
type: object
|
type: object
|
@ -119,8 +119,6 @@
|
|||||||
type: boolean
|
type: boolean
|
||||||
example: false
|
example: false
|
||||||
readOnly: true
|
readOnly: true
|
||||||
settings:
|
|
||||||
$ref: '#/components/schemas/ClientSettings'
|
|
||||||
group_settings_id:
|
group_settings_id:
|
||||||
description: 'The group settings assigned to the client'
|
description: 'The group settings assigned to the client'
|
||||||
type: string
|
type: string
|
||||||
@ -138,4 +136,6 @@
|
|||||||
type: boolean
|
type: boolean
|
||||||
example: false
|
example: false
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
settings:
|
||||||
|
$ref: '#/components/schemas/ClientSettings'
|
||||||
type: object
|
type: object
|
@ -1,5 +1,11 @@
|
|||||||
ClientSettings:
|
ClientSettings:
|
||||||
|
required:
|
||||||
|
- currency_id
|
||||||
properties:
|
properties:
|
||||||
|
currency_id:
|
||||||
|
description: 'The default currency id'
|
||||||
|
type: string
|
||||||
|
example: true
|
||||||
timezone_id:
|
timezone_id:
|
||||||
description: 'The timezone id'
|
description: 'The timezone id'
|
||||||
type: string
|
type: string
|
||||||
@ -20,10 +26,6 @@
|
|||||||
description: 'Toggles whether the currency symbol or code is shown'
|
description: 'Toggles whether the currency symbol or code is shown'
|
||||||
type: boolean
|
type: boolean
|
||||||
example: true
|
example: true
|
||||||
currency_id:
|
|
||||||
description: 'The default currency id'
|
|
||||||
type: string
|
|
||||||
example: true
|
|
||||||
payment_terms:
|
payment_terms:
|
||||||
description: '-1 sets no payment term, 0 sets payment due immediately, positive integers indicates payment terms in days'
|
description: '-1 sets no payment term, 0 sets payment due immediately, positive integers indicates payment terms in days'
|
||||||
type: integer
|
type: integer
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
CompanySettings:
|
CompanySettings:
|
||||||
|
required:
|
||||||
|
- currency_id
|
||||||
properties:
|
properties:
|
||||||
|
currency_id:
|
||||||
|
description: 'The default currency id'
|
||||||
|
type: string
|
||||||
|
example: true
|
||||||
timezone_id:
|
timezone_id:
|
||||||
description: 'The timezone id'
|
description: 'The timezone id'
|
||||||
type: string
|
type: string
|
||||||
@ -20,10 +26,6 @@
|
|||||||
description: 'Toggles whether the currency symbol or code is shown'
|
description: 'Toggles whether the currency symbol or code is shown'
|
||||||
type: boolean
|
type: boolean
|
||||||
example: true
|
example: true
|
||||||
currency_id:
|
|
||||||
description: 'The default currency id'
|
|
||||||
type: string
|
|
||||||
example: true
|
|
||||||
payment_terms:
|
payment_terms:
|
||||||
description: '-1 sets no payment term, 0 sets payment due immediately, positive integers indicates payment terms in days'
|
description: '-1 sets no payment term, 0 sets payment due immediately, positive integers indicates payment terms in days'
|
||||||
type: integer
|
type: integer
|
||||||
|
@ -128,6 +128,8 @@ paths:
|
|||||||
$ref: "#/components/responses/403"
|
$ref: "#/components/responses/403"
|
||||||
422:
|
422:
|
||||||
$ref: "#/components/responses/422"
|
$ref: "#/components/responses/422"
|
||||||
|
5XX:
|
||||||
|
$ref: "#/components/responses/5XX"
|
||||||
default:
|
default:
|
||||||
$ref: "#/components/responses/default"
|
$ref: "#/components/responses/default"
|
||||||
/api/v1/refresh:
|
/api/v1/refresh:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user