mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-30 23:04:34 -04:00
Completing OpenAPI documentation for clients
This commit is contained in:
parent
f74d118994
commit
eee5e84670
@ -8657,6 +8657,13 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
format: string
|
format: string
|
||||||
example: D2J234DFA
|
example: D2J234DFA
|
||||||
|
requestBody:
|
||||||
|
description: Client object that needs to be updated
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ClientRequest'
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: 'Returns the client object'
|
description: 'Returns the client object'
|
||||||
@ -8902,7 +8909,12 @@ paths:
|
|||||||
tags:
|
tags:
|
||||||
- clients
|
- clients
|
||||||
summary: 'Purge client'
|
summary: 'Purge client'
|
||||||
description: 'Handles purging a client'
|
description: |
|
||||||
|
Handles purging a clients.
|
||||||
|
|
||||||
|
Please note this is a destructive action.
|
||||||
|
|
||||||
|
This action will remove all data associated with the client and cannot be undone.
|
||||||
operationId: purgeClient
|
operationId: purgeClient
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: '#/components/parameters/X-API-TOKEN'
|
- $ref: '#/components/parameters/X-API-TOKEN'
|
||||||
@ -8942,7 +8954,12 @@ paths:
|
|||||||
tags:
|
tags:
|
||||||
- clients
|
- clients
|
||||||
summary: 'Merge client'
|
summary: 'Merge client'
|
||||||
description: 'Handles merging 2 clients'
|
description: |
|
||||||
|
Handles merging 2 clients
|
||||||
|
|
||||||
|
The id parameter is the client that will be the primary client after the merge has completed.
|
||||||
|
|
||||||
|
The mergeable_client_hashed_id is the client that will be merged into the primary client, this clients records will be updated and associated with the primary client.
|
||||||
operationId: mergeClient
|
operationId: mergeClient
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: '#/components/parameters/X-API-TOKEN'
|
- $ref: '#/components/parameters/X-API-TOKEN'
|
||||||
@ -8997,7 +9014,7 @@ paths:
|
|||||||
- $ref: '#/components/parameters/X-Requested-With'
|
- $ref: '#/components/parameters/X-Requested-With'
|
||||||
- $ref: '#/components/parameters/include'
|
- $ref: '#/components/parameters/include'
|
||||||
requestBody:
|
requestBody:
|
||||||
description: 'Statment Options'
|
description: 'Statement Options'
|
||||||
required: true
|
required: true
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@ -9015,6 +9032,9 @@ paths:
|
|||||||
show_payments_table:
|
show_payments_table:
|
||||||
description: 'Flag which determines if the payments table is shown'
|
description: 'Flag which determines if the payments table is shown'
|
||||||
type: boolean
|
type: boolean
|
||||||
|
show_credits_table:
|
||||||
|
description: 'Flag which determines if the credits table is shown'
|
||||||
|
type: boolean
|
||||||
show_aging_table:
|
show_aging_table:
|
||||||
description: 'Flag which determines if the aging table is shown'
|
description: 'Flag which determines if the aging table is shown'
|
||||||
type: boolean
|
type: boolean
|
||||||
@ -9740,6 +9760,13 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
format: string
|
format: string
|
||||||
example: D2J234DFA
|
example: D2J234DFA
|
||||||
|
requestBody:
|
||||||
|
description: Product object that needs to be added to the company
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ProductRequest'
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "Returns the Product object"
|
description: "Returns the Product object"
|
||||||
@ -17030,6 +17057,9 @@ components:
|
|||||||
example: google
|
example: google
|
||||||
type: object
|
type: object
|
||||||
ClientRequest:
|
ClientRequest:
|
||||||
|
required:
|
||||||
|
- contacts
|
||||||
|
- country_id
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
description: 'The unique identifier of the client'
|
description: 'The unique identifier of the client'
|
||||||
@ -17038,6 +17068,7 @@ components:
|
|||||||
readOnly: true
|
readOnly: true
|
||||||
contacts:
|
contacts:
|
||||||
type: array
|
type: array
|
||||||
|
description: 'A list of contacts associated with the client'
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/ClientContactRequest'
|
$ref: '#/components/schemas/ClientContactRequest'
|
||||||
name:
|
name:
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
ClientRequest:
|
ClientRequest:
|
||||||
|
required:
|
||||||
|
- contacts
|
||||||
|
- country_id
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
description: 'The unique identifier of the client'
|
description: 'The unique identifier of the client'
|
||||||
@ -7,6 +10,7 @@
|
|||||||
readOnly: true
|
readOnly: true
|
||||||
contacts:
|
contacts:
|
||||||
type: array
|
type: array
|
||||||
|
description: 'A list of contacts associated with the client'
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/ClientContactRequest'
|
$ref: '#/components/schemas/ClientContactRequest'
|
||||||
name:
|
name:
|
||||||
|
@ -235,6 +235,13 @@
|
|||||||
type: string
|
type: string
|
||||||
format: string
|
format: string
|
||||||
example: D2J234DFA
|
example: D2J234DFA
|
||||||
|
requestBody:
|
||||||
|
description: Client object that needs to be updated
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ClientRequest'
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: 'Returns the client object'
|
description: 'Returns the client object'
|
||||||
@ -480,7 +487,12 @@
|
|||||||
tags:
|
tags:
|
||||||
- clients
|
- clients
|
||||||
summary: 'Purge client'
|
summary: 'Purge client'
|
||||||
description: 'Handles purging a client'
|
description: |
|
||||||
|
Handles purging a clients.
|
||||||
|
|
||||||
|
Please note this is a destructive action.
|
||||||
|
|
||||||
|
This action will remove all data associated with the client and cannot be undone.
|
||||||
operationId: purgeClient
|
operationId: purgeClient
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: '#/components/parameters/X-API-TOKEN'
|
- $ref: '#/components/parameters/X-API-TOKEN'
|
||||||
@ -520,7 +532,12 @@
|
|||||||
tags:
|
tags:
|
||||||
- clients
|
- clients
|
||||||
summary: 'Merge client'
|
summary: 'Merge client'
|
||||||
description: 'Handles merging 2 clients'
|
description: |
|
||||||
|
Handles merging 2 clients
|
||||||
|
|
||||||
|
The id parameter is the client that will be the primary client after the merge has completed.
|
||||||
|
|
||||||
|
The mergeable_client_hashed_id is the client that will be merged into the primary client, this clients records will be updated and associated with the primary client.
|
||||||
operationId: mergeClient
|
operationId: mergeClient
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: '#/components/parameters/X-API-TOKEN'
|
- $ref: '#/components/parameters/X-API-TOKEN'
|
||||||
@ -575,7 +592,7 @@
|
|||||||
- $ref: '#/components/parameters/X-Requested-With'
|
- $ref: '#/components/parameters/X-Requested-With'
|
||||||
- $ref: '#/components/parameters/include'
|
- $ref: '#/components/parameters/include'
|
||||||
requestBody:
|
requestBody:
|
||||||
description: 'Statment Options'
|
description: 'Statement Options'
|
||||||
required: true
|
required: true
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@ -593,6 +610,9 @@
|
|||||||
show_payments_table:
|
show_payments_table:
|
||||||
description: 'Flag which determines if the payments table is shown'
|
description: 'Flag which determines if the payments table is shown'
|
||||||
type: boolean
|
type: boolean
|
||||||
|
show_credits_table:
|
||||||
|
description: 'Flag which determines if the credits table is shown'
|
||||||
|
type: boolean
|
||||||
show_aging_table:
|
show_aging_table:
|
||||||
description: 'Flag which determines if the aging table is shown'
|
description: 'Flag which determines if the aging table is shown'
|
||||||
type: boolean
|
type: boolean
|
||||||
|
@ -172,6 +172,13 @@
|
|||||||
type: string
|
type: string
|
||||||
format: string
|
format: string
|
||||||
example: D2J234DFA
|
example: D2J234DFA
|
||||||
|
requestBody:
|
||||||
|
description: Product object that needs to be added to the company
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ProductRequest'
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "Returns the Product object"
|
description: "Returns the Product object"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user