mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Update API docs for uploading a file
This commit is contained in:
parent
a3de5daef8
commit
18f4fda038
@ -11994,7 +11994,7 @@ paths:
|
|||||||
default:
|
default:
|
||||||
$ref: "#/components/responses/default"
|
$ref: "#/components/responses/default"
|
||||||
"/api/v1/invoices/{id}/upload":
|
"/api/v1/invoices/{id}/upload":
|
||||||
put:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- invoices
|
- invoices
|
||||||
summary: "Add invoice document"
|
summary: "Add invoice document"
|
||||||
@ -12012,6 +12012,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 Invoice object"
|
description: "Returns the Invoice object"
|
||||||
|
@ -568,7 +568,7 @@
|
|||||||
default:
|
default:
|
||||||
$ref: "#/components/responses/default"
|
$ref: "#/components/responses/default"
|
||||||
"/api/v1/invoices/{id}/upload":
|
"/api/v1/invoices/{id}/upload":
|
||||||
put:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- invoices
|
- invoices
|
||||||
summary: "Add invoice document"
|
summary: "Add invoice document"
|
||||||
@ -586,6 +586,23 @@
|
|||||||
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 Invoice object"
|
description: "Returns the Invoice object"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user