Skip to content

Instantly share code, notes, and snippets.

@danielkhan
Created June 6, 2018 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielkhan/e448bb5e84996a7475c38e80b79607a7 to your computer and use it in GitHub Desktop.
Save danielkhan/e448bb5e84996a7475c38e80b79607a7 to your computer and use it in GitHub Desktop.
/**
* @swagger
* /users/register:
* post:
* parameters:
* - in: body
* name: user
* description: The user to create.
* schema:
* $ref: "#/definitions/User"
* description: Creates a new user
* responses:
* 201:
* description: User created
* 400:
* description: Error - missing data
* 500:
* description: Error - general problem
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment