SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /api/places/{placeId}:
  2.     x-swagger-router-controller: place-controller
  3.     put:
  4.       summary: Update a place given its ID
  5.       description: >
  6.         This endpoint allows users to update a place given its ID
  7.       operationId: updateById
  8.       tags:
  9.         - place
  10.       consumes:
  11.         - multipart/form-data
  12.       parameters:
  13.         - in: path
  14.           name: placeId
  15.           description: The place identifier
  16.           type: string
  17.           required: true
  18.         - in: formData
  19.           name: placeImg
  20.           type: file
  21.           required: false
  22.           description: The file to upload.
  23.         - in: formData
  24.           name: place
  25.           description: a place
  26.           required: true
  27.           type: string
  28.       responses:
  29.         '200':
  30.           description: Place updated successfully
  31.           schema:
  32.             $ref: '#/definitions/Place'
  33.         '400':
  34.           description: Place ID is not valid
  35.         '404':
  36.           description: Place not found
  37.         '500':
  38.           description: There was an error updating the place
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top