Register a new ticket sale
Expected body:
{
"country": "AR",
"event": "lollapalooza"
}Response:
Status: 201, 400, 401
{
"country": "AR",
"event": "lollapalooza"
}Get stats of ticket sales by country
Response:
Status: 200, 401
{
"AR": 2,
"CL": 1
}Log in with user credentials
Expected body:
{
"username": "testusername",
"password": "pass"
}Response:
Status: 200, 400, 401
{
"token": "token"
}./run.shgo test ./..../clean.shAs saving users is out of scope, a simple JWT approach was implemented with a fake hardcoded user saved.
username: testusername
password: pass