Version
v4
Severity
Medium
Suggested Priority
Medium
Observed Behaviour
When not logged in as an admin, accessing the api with http://127.0.0.1:5001/api/bookings/1 returns the user to the Giga homepage, whether any bookings exist or not. This conflicts with one of the user stories – As a developer, So that I can build my own front-end representation of the data, I want an API providing access to gigs, bookings, accounts, etc. returned in JSON.
The user story suggests normal (non-admin) users should be able to retrieve booking data, and not being able to do so could prove an irritation to them, reducing their trust in Giga.
Expected Behaviour
http://127.0.0.1:5001/api/bookings/1 gives the correct JSON data for a user's first booking, if it exists.
Reproduction Steps
- Type http://127.0.0.1:5001/api/bookings/1 into Google Chrome's browser address bar when not logged in as an admin.
Version
v4
Severity
Medium
Suggested Priority
Medium
Observed Behaviour
When not logged in as an admin, accessing the api with http://127.0.0.1:5001/api/bookings/1 returns the user to the Giga homepage, whether any bookings exist or not. This conflicts with one of the user stories – As a developer, So that I can build my own front-end representation of the data, I want an API providing access to gigs, bookings, accounts, etc. returned in JSON.
The user story suggests normal (non-admin) users should be able to retrieve booking data, and not being able to do so could prove an irritation to them, reducing their trust in Giga.
Expected Behaviour
http://127.0.0.1:5001/api/bookings/1 gives the correct JSON data for a user's first booking, if it exists.
Reproduction Steps