Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- |----------------------------+-------------+-------------------------------------------------------|
- | URI Path = Resource | HTTP Method | Function |
- |----------------------------+-------------+-------------------------------------------------------|
- | /customers | POST | Register a customer |+
- | /customers/{id} | GET | Get the customer with id id |+
- | /customers/{id} | PUT | Update the customer with id id |+
- | /customers/{id} | DELETE | Deregister the customer with id id |+
- | /customers/{id}/tokens | POST | Request tokens |-
- | /merchants | POST | Register a merchant |+
- | /merchants/{id} | GET | Get the merchant with id id |+
- | /merchants/{id} | PUT | Update the merchant with id id |+
- | /merchants/{id} | DELETE | Deregister the merchant with id id |+
- | /merchants/{id}/token | GET | Get the token (received from a customer) from |-
- | | | merchant with id id |
- | /merchants/{id}/transfer | POST | Merchant with id id initiates a transfer |-
- | /reports | GET | List of generated reports |-
- | /reports?userid={n} | GET | Get the report for user with id n |-
- |----------------------------+-------------+-------------------------------------------------------|
- +---------------------------------------------------------------+
- [+] = implementeret |
- [-] = IKKE implementeret |
- |
- + /customer |
- + GET [+] |
- + POST [+]
- |
- +-- /{id}
- +-- GET [+]
- +-- PUT [+]
- +-- DELETE [+]
- |
- +---- /tokens
- +---- POST [-]
- |
- + /merchant
- + GET [+]
- + POST [+]
- |
- +-- /{id}
- +-- GET [+]
- +-- PUT [+]
- +-- DELETE [+]
- |
- +---- /token
- +---- GET [-]
- +---- PUT /merchant/id/token/ (scan token)
- |
- +---- /transfer
- +---- POST [-]
- |
- + /reports [-]
- + /reports?start={n}?end={n} [-]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement