Skip to content

Commit

Permalink
docs: add documentation about unselecting photo (#8237)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Mar 21, 2023
1 parent bda3722 commit b989be3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/api/ref/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,36 @@ paths:
- $ref: '#/components/parameters/angle'
tags:
- Write Requests
/cgi/product_image_unselect.pl:
post:
summary: Unselect A Photo
requestBody:
content:
multipart/form-data:
schema:
$ref: ./requestBodies/unselect_a_photo.yaml
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
status:
type: string
description: status of the unselect operation
example: status ok
status_code:
type: number
description: status code of the operation
example: 0
imagefield:
type: string
example: front_fr
description: image field that was unselected


/cgi/product_jqm2.pl:
post:
summary: Add or Edit A Product
Expand Down
10 changes: 10 additions & 0 deletions docs/api/ref/requestBodies/unselect_a_photo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
type: object
properties:
code:
type: string
description: code of the product
example: '4251105501381'
id:
type: string
description: image field (image id) of the photo to unselect
example: front_fr

0 comments on commit b989be3

Please sign in to comment.