Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. swagger: "2.0"
  2. info:
  3. title: Sample API
  4. description: API description in Markdown.
  5. version: 1.0.0
  6. host: api.example.com
  7. schemes:
  8. - http
  9. paths:
  10. /users:
  11. post:
  12. operationId: UserCreate
  13. parameters:
  14. - name: body
  15. in: body
  16. required: true
  17. schema:
  18. allOf:
  19. - $ref: "#/definitions/ID"
  20. - $ref: "#/definitions/User_object"
  21. - type: object
  22. required:
  23. - ID
  24. - genderCode
  25. - birthDate
  26. - Code
  27. produces:
  28. - application/json
  29. consumes:
  30. - application/json
  31. responses:
  32. 200:
  33. description: "OK"
  34.  
  35. definitions:
  36. ID:
  37. title: ID
  38. properties:
  39. GUID:
  40. type: string
  41. description: "ID"
  42. format: uuid
  43.  
  44. User_object:
  45. title: User_object
  46. properties:
  47. genderCode:
  48. type: string
  49. birthDate:
  50. type: string
  51. format: date
  52. Code:
  53. type: string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement