Your perfect playground to practice CRUD operations in a safe, simulated e-wallet environment without the risk of real currency.
Delete a specific user identified by the username
parameter.
https://e-wallet-api-server.sigma-schoolsc1.repl.co/users/:username
Parameters, Success and Error responses
Parameter | Description |
---|---|
username | The username of the user to be deleted. |
Status 200
Response content:
{
"message": "User {username} has been deleted."
}
Status 403
Response content:{
"message": "Invalid API key."
}
Status 404
Response content:{
"message": "User {username} not found."
}
Delete a specific transaction for a user identified by the username
parameter.
https://e-wallet-api-server.sigma-schoolsc1.repl.co/deleteTransaction/:username
The request body must be a JSON object containing the amount
property. For example:
{
"amount": 10
}
Parameters, Success and Error Responses
Parameter | Description |
---|---|
username | The username of the user to be deleted. |
Status 200
Response content:{
"message": "Transaction for user {username} has been deleted successfully!",
"name": "{username}",
"transactions": []
}
Status 418
Response content:{
"error": "Error Transaction Request: 'amount' is required in request body."
}