Implemented coin purchase-flow
This commit is contained in:
@@ -25,6 +25,12 @@ Content-Type: application/json
|
||||
Accept: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
### Get me coins
|
||||
GET http://localhost:8000/api/v1/users/me/coins
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
### Get me matches
|
||||
GET http://localhost:8000/api/v1/users/{{id}}/matches
|
||||
Content-Type: application/json
|
||||
@@ -35,4 +41,16 @@ Authorization: Bearer {{token}}
|
||||
GET http://localhost:8000/api/v1/users/{{id}}/transactions?type=C
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
### post coin-purchases
|
||||
POST http://localhost:8000/api/v1/coin-purchases
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
{
|
||||
"euros": 1,
|
||||
"payment_type": "MBWAY",
|
||||
"payment_reference": "912345678"
|
||||
}
|
||||
Reference in New Issue
Block a user