Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. |----------------------------+-------------+-------------------------------------------------------|
  2. | URI Path = Resource | HTTP Method | Function |
  3. |----------------------------+-------------+-------------------------------------------------------|
  4. | /customers | POST | Register a customer |+
  5. | /customers/{id} | GET | Get the customer with id id |+
  6. | /customers/{id} | PUT | Update the customer with id id |+
  7. | /customers/{id} | DELETE | Deregister the customer with id id |+
  8. | /customers/{id}/tokens | POST | Request tokens |-
  9. | /merchants | POST | Register a merchant |+
  10. | /merchants/{id} | GET | Get the merchant with id id |+
  11. | /merchants/{id} | PUT | Update the merchant with id id |+
  12. | /merchants/{id} | DELETE | Deregister the merchant with id id |+
  13. | /merchants/{id}/token | GET | Get the token (received from a customer) from |-
  14. | | | merchant with id id |
  15. | /merchants/{id}/transfer | POST | Merchant with id id initiates a transfer |-
  16. | /reports | GET | List of generated reports |-
  17. | /reports?userid={n} | GET | Get the report for user with id n |-
  18. |----------------------------+-------------+-------------------------------------------------------|
  19.  
  20.  
  21. +---------------------------------------------------------------+
  22. [+] = implementeret |
  23. [-] = IKKE implementeret |
  24. |
  25. + /customer |
  26. + GET [+] |
  27. + POST [+]
  28. |
  29. +-- /{id}
  30. +-- GET [+]
  31. +-- PUT [+]
  32. +-- DELETE [+]
  33. |
  34. +---- /tokens
  35. +---- POST [-]
  36. |
  37. + /merchant
  38. + GET [+]
  39. + POST [+]
  40. |
  41. +-- /{id}
  42. +-- GET [+]
  43. +-- PUT [+]
  44. +-- DELETE [+]
  45. |
  46. +---- /token
  47. +---- GET [-]
  48. +---- PUT /merchant/id/token/ (scan token)
  49. |
  50. +---- /transfer
  51. +---- POST [-]
  52. |
  53. + /reports [-]
  54. + /reports?start={n}?end={n} [-]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement