This project is my very first dive in to building ASP.NET Core web API's, after some configuration I finally managed to get MySql to play ball on my Mac (had to download connectors etc)
GET http://localhost:5000/api/incident
Returns a list of all incidents stored in the database.
GET http://localhost:5000/api/incident/{id}
Returns a single incident object if it is found in the DB.
GET http://localhost:5000/api/user
Returns a list of all users stored in the database.
POST http://localhost:5000/api/user
Adds a new user to the DB
POST http://localhost:5000/api/location
Adds a new location to the DB
POST http://localhost:5000/api/incident
Adds a new incident to the DB
GET http://localhost:5000/api/user/{id}
Returns a single use if they are found in the DB.
GET http://localhost:5000/api/location
Returns a list of all available locations.
GET http://localhost:5000/api/location/{id}
Returns a single location if found.