Advertisement
Guest User

createUser

a guest
Sep 10th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. swagger: "2.0"
  2. info:
  3. description: "This is the TEZ Identity Gateway api, that is used for public/external identity management"
  4. version: "1.0.0"
  5. title: "TEZ Identity GateWay"
  6. contact:
  7. email: "anthony.whitehead@tieto.com"
  8. host: "TBD"
  9. basePath: "/v0"
  10. schemes:
  11. - "https"
  12. - "http"
  13. paths:
  14. /user/create:
  15. post:
  16. tags:
  17. - "createUser"
  18. summary: "Create new user to TEZ"
  19. description: "Create new user to TEZ"
  20. operationId: "createUser"
  21. consumes:
  22. - "application/json"
  23. produces:
  24. - "application/json"
  25. parameters:
  26. - in: "body"
  27. name: "User object to be addedd to TEZ"
  28. description: "First Name of the person added to TEZ identity"
  29. required: false
  30. schema:
  31. $ref: "#/definitions/User"
  32. responses:
  33. 200:
  34. description: "OK"
  35. 405:
  36. description: "Invalid input"
  37. securityDefinitions:
  38. petstore_auth:
  39. type: "oauth2"
  40. authorizationUrl: "http://petstore.swagger.io/oauth/dialog"
  41. flow: "implicit"
  42. scopes:
  43. write:pets: "modify pets in your account"
  44. read:pets: "read your pets"
  45. api_key:
  46. type: "apiKey"
  47. name: "api_key"
  48. in: "header"
  49. definitions:
  50. User:
  51. type: "object"
  52. properties:
  53. UserId:
  54. type: "integer"
  55. format: "int64" #TODO: Format of UserId
  56. example: 243
  57. username:
  58. type: "string"
  59. example: "mrosin"
  60. firstName:
  61. type: "string"
  62. example: "Martin"
  63. lastName:
  64. type: "string"
  65. example: "Rosin"
  66. email:
  67. type: "string"
  68. example: "firstname.lastname@company.com"
  69. password:
  70. type: "string"
  71. example: "h95`>vBuC6#d'K<7"
  72. xml:
  73. name: "User"
  74. externalDocs:
  75. description: "Find out more about Swagger"
  76. url: "http://swagger.io"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement