Guest User

Untitled

a guest
Nov 1st, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. /**
  2. * @swagger
  3. * /api/v1.0/login:
  4. * post:
  5. * tags:
  6. * - Login
  7. * description: Login into system
  8. * produces:
  9. * - application/json
  10. * parameters:
  11. * - username: Trelleborg
  12. * description: The username of user
  13. * in: body
  14. * required: true
  15. * - password: password
  16. * description: Password of user
  17. * in: body
  18. * required: true
  19. *
  20. * responses:
  21. * 200:
  22. * description: Successfully login
  23. */
  24.  
  25. {
  26. "status": "ok",
  27. "data": {
  28. "auth": true,
  29. "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjViYzg3ZDFkOWNhNmRkNDM5MDI1YjA1MCIsImlhdCI6MTU0MTA5MzMxMSwiZXhwIjoxNTQxMTc5NzExfQ.3BIl0dIQg-cEU9fyM7BocKLHEugH8cws5_E-dmRVHZM",
  30. "faId": "HSo7q2o0",
  31. "roles": "Owner"
  32. }
Add Comment
Please, Sign In to add comment