Bug 38262: Add extended attributes support to vendors API specification
Updates the OpenAPI definitions to support additional fields on vendor records. This adds: - extended_attributes array field to vendor schema definition - _strings field for localized/computed string representations - extended_attributes and +strings to available embed options These changes allow the API to expose and accept additional field data when retrieving or modifying vendor records via the REST API. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Michaela <michaela.sieber@kit.edu> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
05423a313b
commit
ee6f5a3ee9
|
|
@ -156,6 +156,16 @@ properties:
|
|||
- integer
|
||||
- "null"
|
||||
description: Number of linked invoices
|
||||
extended_attributes:
|
||||
description: Related additional field values
|
||||
type:
|
||||
- array
|
||||
items:
|
||||
$ref: extended_attribute_value.yaml
|
||||
_strings:
|
||||
type:
|
||||
- object
|
||||
- "null"
|
||||
additionalProperties: false
|
||||
required:
|
||||
- name
|
||||
|
|
|
|||
|
|
@ -38,6 +38,8 @@
|
|||
- baskets+count
|
||||
- subscriptions+count
|
||||
- invoices+count
|
||||
- extended_attributes
|
||||
- +strings
|
||||
collectionFormat: csv
|
||||
responses:
|
||||
"200":
|
||||
|
|
@ -156,6 +158,8 @@
|
|||
- interfaces
|
||||
- contacts
|
||||
- contracts
|
||||
- extended_attributes
|
||||
- +strings
|
||||
collectionFormat: csv
|
||||
produces:
|
||||
- application/json
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
- package
|
||||
- order
|
||||
- subscription
|
||||
- vendor
|
||||
- $ref: "../swagger.yaml#/parameters/match"
|
||||
- $ref: "../swagger.yaml#/parameters/order_by"
|
||||
- $ref: "../swagger.yaml#/parameters/page"
|
||||
|
|
|
|||
Loading…
Reference in New Issue