Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /api/places/{placeId}:
- x-swagger-router-controller: place-controller
- put:
- summary: Update a place given its ID
- description: >
- This endpoint allows users to update a place given its ID
- operationId: updateById
- tags:
- - place
- consumes:
- - multipart/form-data
- parameters:
- - in: path
- name: placeId
- description: The place identifier
- type: string
- required: true
- - in: formData
- name: placeImg
- type: file
- required: false
- description: The file to upload.
- - in: formData
- name: place
- description: a place
- required: true
- type: string
- responses:
- '200':
- description: Place updated successfully
- schema:
- $ref: '#/definitions/Place'
- '400':
- description: Place ID is not valid
- '404':
- description: Place not found
- '500':
- description: There was an error updating the place
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement