kghalamb / AirStage

0 stars 0 forks source link

Test results (Alexander Specht) #15

Open Velevynn opened 11 months ago

Velevynn commented 11 months ago

Flow 1: curl -X 'GET' \ 'https://airstage-api.onrender.com/catalog/venues/' \ -H 'accept: application/json' [ { "venue_id": 1, "name": "Outside Lands", "location": "San Francisco", "capacity": 10000, "price": 50000, "time_available": "2023-10-28T00:00:00+00:00", "time_end": "2023-10-28T03:00:00+00:00" } ] curl -X 'POST' \ 'https://airstage-api.onrender.com/book/create/request_venue/1' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d ' { "venue_id": 1, "name": "Outside Lands", "location": "San Francisco", "capacity": 10000, "price": 50000, "time_available": "2023-10-28T00:00:00+00:00", "time_end": "2023-10-28T03:00:00+00:00" } ' { "success": false } Flow 2: curl -X 'GET' \ 'https://airstage-api.onrender.com/catalog/performers/' \ -H 'accept: application/json' [ { "performer_id": 1, "name": "Iann Dior", "capacity_preference": 8000, "price": 13000, "time_available": "2023-11-06T05:00:00+00:00", "time_end": "2023-11-06T07:05:00+00:00" }, { "performer_id": 2, "name": "Taylor", "capacity_preference": 10000, "price": 10000, "time_available": "2023-11-06T22:15:45.983328+00:00", "time_end": "2023-11-06T22:15:45.983328+00:00" }, { "performer_id": 3, "name": "taylorswiftismid", "capacity_preference": 10000, "price": 10000, "time_available": "2023-11-13T04:50:08.008782+00:00", "time_end": "2023-11-13T04:50:08.008782+00:00" }, { "performer_id": 4, "name": "testperformer2", "capacity_preference": 10000, "price": 10000, "time_available": "2023-11-13T05:38:39.882127+00:00", "time_end": "2023-11-13T05:38:39.882127+00:00" } ] curl -X 'POST' \ 'https://airstage-api.onrender.com/book/create/request_performer/1' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "performer_id": 2, "name": "Taylor Swift", "capacity_preference": 100, "price": 1000, "time_available": "2023-11-06T05:00:00+00:00", "time_end": "2023-11-06T07:05:00+00:00" }' { "success": false } Flow 3: UNABLE TO TEST FIRST ENDPOINT OF FLOW, INVALID URL + MISSING ENDPOINT curl -X 'POST' \ 'https://airstage-api.onrender.com/book/bookings/edit/3' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "venue_id": 1, "performer_id": 1, "time_start": "2023-11-06T21:00:00+00:00", "time_end": "2023-11-06T23:00:00+00:00" }' { "success": true } Flow 4: curl -X 'POST' \ 'https://airstage-api.onrender.com/user/signup/' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "username": "testing", "password": "don'\''t store these", "user_type": "performer" }' { "success": true } curl -X 'POST' \ 'https://airstage-api.onrender.com/user/signin/' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "username": "testing", "password": "don'\''t store these", "user_type": "performer" } ' { "success": true }

PERSONAL FLOW 1: An artist had previously requested a venue for a breakout performance, but negotiations between the companies failed, and the artist intends to pull out and make sure that they no longer have any bookings under their name. curl -X 'GET' \ 'https://airstage-api.onrender.com/catalog/booking/4' \ -H 'accept: application/json' { "venue_id": 1, "performer_id": 2, "time_start": "2023-10-28T00:00:00+00:00", "time_end": "2023-10-28T03:00:00+00:00" }

curl -X 'POST' \ 'https://airstage-api.onrender.com/book/bookings/cancel/4' \ -H 'accept: application/json' \ -d '' {}

curl -X 'GET' \ 'https://airstage-api.onrender.com/catalog/booking/4' \ -H 'accept: application/json' {} PERSONAL FLOW 2: Due to a miscommunication between event staff, a venue accidentally requests two performers for the same performance date. curl -X 'POST' \ 'https://airstage-api.onrender.com/book/create/request_performer/1' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "performer_id": 2, "name": "Taylor Swift", "capacity_preference": 100, "price": 1000, "time_available": "2023-11-06T05:00:00+00:00", "time_end": "2023-11-06T07:05:00+00:00" }' { "success": true } curl -X 'POST' \ 'https://airstage-api.onrender.com/book/create/request_performer/1' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "performer_id": 5, "name": "Oratrice Mechanique d'\''analys Cardinale", "capacity_preference": 100, "price": 1000, "time_available": "2023-11-06T05:00:00+00:00", "time_end": "2023-11-06T07:05:00+00:00" }' { "success": true } PERSONAL FLOW 3: Due to poor handling by upper management, the one unpaid intern at the event staff keeps getting individual, conflicting instructions to modify the details of a certain booking. curl -X 'POST' \ 'https://airstage-api.onrender.com/book/bookings/edit/6' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "venue_id": 1, "performer_id": 1, "time_start": "2023-11-06T21:00:00+00:00", "time_end": "2023-11-06T23:00:00+00:00" }' { "success": true }

curl -X 'POST' \ 'https://airstage-api.onrender.com/book/bookings/edit/6' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "venue_id": 1, "performer_id": 5, "time_start": "2022-11-06T21:00:00+00:00", "time_end": "2023-11-06T23:00:00+00:00" }

' { "success": true } curl -X 'POST' \ 'https://airstage-api.onrender.com/book/bookings/edit/6' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "venue_id": 2, "performer_id": 5, "time_start": "2022-11-06T21:00:00+00:00", "time_end": "2023-11-06T23:00:00+00:00" }

' { "success": true }