colinlwhite/HalfTime

Instrument Read / Get

Opened this issue · 0 comments

User Story

  • As a developer I need an API endpoint that will retrieve all of the user's instruments from the DB

Tech Notes

  • Create InstrumentsController.cs within the Controllers folder
  • Create GetInstrumentsByUserId GET Request within InstrumentsController.cs
  • Create instrumentsRepository.cs within Data folder
  • Create Instrument.cs within the Model folder
  • Create the correct SQL query within InstrumentRepository to retrieve the data from the DB

Acceptance Criteria

When I send a GET request to the https://localhost:44387/api/Instruments/1 endpoint
Then I should get a 200 Response code
And a list of the specified user's instruments