INSTRUCTIONS:
- Deploy d_database project to local database (you can use the included publish profile d_database.publish.xml).
- (Optional) Run the Scripts\04_insert_5000_animals.sql script of the d_database project to populate data.
- Run the API (q_api project).
- Run the POST /token method, using one of the test users from appsettings.json as the body. *
- Copy token from result and use it to call other methods.
- An example Postman collection is provided on the git root folder. This collection has the call to token endpoint scripted so it is easier to test.
SPECIFICATIONS COMPLIANCE:
- The scripts are located inside the d_database project, on the Scripts folder.
- There is an extra script (07) for the Order table creation.
- All endpoints require a JWT token, the tests users are in the appsettings.json file in the q_api project. I did not move them to the database since that was not the main goal of this test.
- The Web API is built in .NET 7.
- The Micro ORM Dapper was used.
- All endpoints using async/await, the only exception being the token endpoint.
- No warnings on compile.