Tomas Cohen Arazi
d6c67eddd3
This patch moves all the REST API spec pieces into YAML. To test: 1. Run: $ kshell k$ prove t/db_dependent/api/v1/* => SUCCESS: Tests pass 2. Apply this patch 3. Repeat 1 => SUCCESS: Tests still pass! 4. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
42 lines
942 B
YAML
42 lines
942 B
YAML
---
|
|
type: object
|
|
properties:
|
|
invoice_id:
|
|
type: integer
|
|
description: Internal identifier for the incoide. Generated on POST
|
|
invoice_number:
|
|
type: string
|
|
description: Invoice number assigned by the vendor
|
|
vendor_id:
|
|
type: integer
|
|
description: Internal identifier for the vendor
|
|
shipping_date:
|
|
type:
|
|
- string
|
|
- "null"
|
|
format: date
|
|
description: Date of shipping
|
|
invoice_date:
|
|
type:
|
|
- string
|
|
- "null"
|
|
format: date
|
|
description: Date of billing
|
|
closed:
|
|
type: boolean
|
|
description: If the invoice is closed
|
|
close_date:
|
|
type: string
|
|
format: date
|
|
description: Invoice close date (only when the invoice is closed)
|
|
shipping_cost:
|
|
type:
|
|
- integer
|
|
- "null"
|
|
description: Shipping cost
|
|
shipping_cost_budget_id:
|
|
type:
|
|
- integer
|
|
- "null"
|
|
description: Shipping cost linking to budget
|
|
additionalProperties: false
|