feat(api): add GET and POST /supplier/:id/articles endpoints and openapi docs
This commit is contained in:
@@ -155,6 +155,58 @@
|
||||
* price:
|
||||
* $ref: '#/components/schemas/ArticleSupplierPrice'
|
||||
* nullable: true
|
||||
* SupplierArticlePhoto:
|
||||
* type: object
|
||||
* required: [sort, thumbhash, hash, thumbw, thumbh]
|
||||
* properties:
|
||||
* sort:
|
||||
* type: integer
|
||||
* thumbhash:
|
||||
* type: string
|
||||
* hash:
|
||||
* type: string
|
||||
* thumbw:
|
||||
* type: integer
|
||||
* thumbh:
|
||||
* type: integer
|
||||
* SupplierArticleInfo:
|
||||
* type: object
|
||||
* required: [id, sku]
|
||||
* properties:
|
||||
* id:
|
||||
* type: integer
|
||||
* sku:
|
||||
* type: string
|
||||
* name:
|
||||
* type: string
|
||||
* nullable: true
|
||||
* slug:
|
||||
* type: string
|
||||
* nullable: true
|
||||
* photos:
|
||||
* type: array
|
||||
* items:
|
||||
* $ref: '#/components/schemas/SupplierArticlePhoto'
|
||||
* articlepic:
|
||||
* type: array
|
||||
* items:
|
||||
* $ref: '#/components/schemas/SupplierArticlePhoto'
|
||||
* eans:
|
||||
* type: array
|
||||
* items:
|
||||
* type: string
|
||||
* articleean:
|
||||
* type: array
|
||||
* items:
|
||||
* type: string
|
||||
* SupplierArticle:
|
||||
* allOf:
|
||||
* - $ref: '#/components/schemas/ArticleSupplier'
|
||||
* - type: object
|
||||
* required: [article]
|
||||
* properties:
|
||||
* article:
|
||||
* $ref: '#/components/schemas/SupplierArticleInfo'
|
||||
* Brand:
|
||||
* type: object
|
||||
* required: [id, name]
|
||||
|
||||
Reference in New Issue
Block a user