mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 20:14:35 -04:00
Fixes for upload spec
This commit is contained in:
parent
2b0f793fd4
commit
783d4436a4
@ -1889,7 +1889,7 @@ paths:
|
|||||||
default:
|
default:
|
||||||
$ref: "#/components/responses/default"
|
$ref: "#/components/responses/default"
|
||||||
"/api/v1/companies/{id}/upload":
|
"/api/v1/companies/{id}/upload":
|
||||||
put:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- companies
|
- companies
|
||||||
summary: "Uploads a document to a company"
|
summary: "Uploads a document to a company"
|
||||||
@ -1907,6 +1907,23 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
format: string
|
format: string
|
||||||
example: D2J234DFA
|
example: D2J234DFA
|
||||||
|
requestBody:
|
||||||
|
description: "File Upload Body"
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
multipart/form-data:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
_method:
|
||||||
|
type: string
|
||||||
|
example: PUT
|
||||||
|
documents:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
description: "Array of binary documents for upload"
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "Returns the client object"
|
description: "Returns the client object"
|
||||||
@ -3429,7 +3446,7 @@ paths:
|
|||||||
default:
|
default:
|
||||||
$ref: "#/components/responses/default"
|
$ref: "#/components/responses/default"
|
||||||
"/api/v1/expenses/{id}/upload":
|
"/api/v1/expenses/{id}/upload":
|
||||||
put:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- expense
|
- expense
|
||||||
summary: "Uploads a document to a expense"
|
summary: "Uploads a document to a expense"
|
||||||
@ -3447,6 +3464,23 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
format: string
|
format: string
|
||||||
example: D2J234DFA
|
example: D2J234DFA
|
||||||
|
requestBody:
|
||||||
|
description: "File Upload Body"
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
multipart/form-data:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
_method:
|
||||||
|
type: string
|
||||||
|
example: PUT
|
||||||
|
documents:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
description: "Array of binary documents for upload"
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "Returns the Expense object"
|
description: "Returns the Expense object"
|
||||||
@ -3801,7 +3835,7 @@ paths:
|
|||||||
default:
|
default:
|
||||||
$ref: "#/components/responses/default"
|
$ref: "#/components/responses/default"
|
||||||
"/api/v1/group_settings/{id}/upload":
|
"/api/v1/group_settings/{id}/upload":
|
||||||
put:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- group_settings
|
- group_settings
|
||||||
summary: "Uploads a document to a group setting"
|
summary: "Uploads a document to a group setting"
|
||||||
@ -3819,6 +3853,23 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
format: string
|
format: string
|
||||||
example: D2J234DFA
|
example: D2J234DFA
|
||||||
|
requestBody:
|
||||||
|
description: "File Upload Body"
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
multipart/form-data:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
_method:
|
||||||
|
type: string
|
||||||
|
example: PUT
|
||||||
|
documents:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
description: "Array of binary documents for upload"
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "Returns the Group Setting object"
|
description: "Returns the Group Setting object"
|
||||||
@ -4926,7 +4977,7 @@ paths:
|
|||||||
default:
|
default:
|
||||||
$ref: "#/components/responses/default"
|
$ref: "#/components/responses/default"
|
||||||
"/api/v1/recurring_expenses/{id}/upload":
|
"/api/v1/recurring_expenses/{id}/upload":
|
||||||
put:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- recurring_expense
|
- recurring_expense
|
||||||
summary: "Uploads a document to a recurring_expense"
|
summary: "Uploads a document to a recurring_expense"
|
||||||
@ -4944,6 +4995,23 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
format: string
|
format: string
|
||||||
example: D2J234DFA
|
example: D2J234DFA
|
||||||
|
requestBody:
|
||||||
|
description: "File Upload Body"
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
multipart/form-data:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
_method:
|
||||||
|
type: string
|
||||||
|
example: PUT
|
||||||
|
documents:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
description: "Array of binary documents for upload"
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "Returns the RecurringExpense object"
|
description: "Returns the RecurringExpense object"
|
||||||
@ -8620,7 +8688,7 @@ paths:
|
|||||||
$ref: '#/components/responses/default'
|
$ref: '#/components/responses/default'
|
||||||
|
|
||||||
"/api/v1/products/{id}/upload":
|
"/api/v1/products/{id}/upload":
|
||||||
put:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- products
|
- products
|
||||||
summary: "Add product document"
|
summary: "Add product document"
|
||||||
@ -8639,6 +8707,7 @@ paths:
|
|||||||
format: string
|
format: string
|
||||||
example: D2J234DFA
|
example: D2J234DFA
|
||||||
requestBody:
|
requestBody:
|
||||||
|
description: "File Upload Body"
|
||||||
required: true
|
required: true
|
||||||
content:
|
content:
|
||||||
multipart/form-data:
|
multipart/form-data:
|
||||||
@ -8647,10 +8716,12 @@ paths:
|
|||||||
properties:
|
properties:
|
||||||
_method:
|
_method:
|
||||||
type: string
|
type: string
|
||||||
example: POST
|
example: PUT
|
||||||
documents:
|
documents:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
description: "Array of binary documents for upload"
|
||||||
|
type: string
|
||||||
format: binary
|
format: binary
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user