Skip to content

Commit

Permalink
fix(spec): fix specification
Browse files Browse the repository at this point in the history
  • Loading branch information
Lena Rashkovan committed Oct 31, 2023
1 parent b323f80 commit 677a211
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions specification/project.spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,12 @@ paths:
schema:
$ref: '#/components/schemas/generalError'

/offers/{offerId}/imagePreview:
/offers/{offerId}/images:
post:
tags:
- offers
summary: Upload preview image
description: Uploads offer's preview. Offer image should have a `png` or `jpg` format.
summary: Upload offer images
description: Uploads images describing the property. Images should have a `png` or `jpg` format.
requestBody:
content:
multipart/form-data:
Expand All @@ -428,18 +428,19 @@ paths:
format: binary
responses:
'201':
description: Image has been uploaded.
description: Images have been uploaded.
content:
application/json:
schema:
type: object
properties:
image:
type: string
example:
http://mysite.com/upload/Uq-PzHXRZnm6NzYvfjFGA.png
images:
type: array
items:
type: string
example: http://mysite.com/upload/Uq-PzHXRZnm6NzYvfjFGA.png
'401':
description: A user is not authorized to upload an image.
description: A user is not authorized to upload images.
content:
application/json:
schema:
Expand Down Expand Up @@ -671,10 +672,6 @@ components:
format: date-time
required: true
example: "2023-01-30T08:30:00Z"
imagePreview:
type: string
required: true
example: https://s3.amasonaws.com/image-preview.png
images:
type: array
minItems: 6
Expand Down Expand Up @@ -746,9 +743,6 @@ components:
description:
type: string
example: A quiet cozy and picturesque that hides behind a a river by the unique lightness of Amsterdam.
imagePreview:
type: string
example: https://s3.amasonaws.com/image-preview.png
images:
type: array
minItems: 6
Expand Down

0 comments on commit 677a211

Please sign in to comment.