POST |
|
https://testserver.ddosify.com/account/register/ |
Register user with: username, email, password |
POST |
|
https://testserver.ddosify.com/account/login/ |
Login user with: username, password. You can use the JWT access token in private endpoints. |
GET |
|
https://testserver.ddosify.com/account/user/ |
Get user detail. You must add JWT access token into header with: Authorization: Bearer eyJhbGciOiJ... You can get X-API-KEY from this endpoint. |
GET |
|
https://testserver.ddosify.com/currencies/ |
Get available currencies. Response: ["USD", "EUR", "TRY", "BGN",
"BHD",...] |
GET |
|
https://testserver.ddosify.com/exchange_rate/USD/EUR/ |
Get the exchange rate from base to target. This endpoint shows the exchange rate from USD to EUR. Note that the currency rates are hard-coded and not real-time. |
POST |
|
https://testserver.ddosify.com/exchange/ |
Exchange currencies. Body: {
"amount": 153.5,
"base": "USD",
"target": "TRY"
} You must add X-API-KEY to headers. |