GaProgMan / bookApi

An API and UI for a fake book search engine - built entirely in the open, on Twitch
https://twitch.tv/gaprogman
MIT License
2 stars 0 forks source link

GET a book record by it's ID #1

Closed GaProgMan closed 3 years ago

GaProgMan commented 3 years ago

Description

The current version of the API returns a single, hardcoded book record for all GET requests sent to the /Books endpoint. This should be altered, such that the /Books endpoint takes an ID for the book to return.

High-Level Proposed Solution

Considerations

The SwaggerResponse attributes on the Get API endpoint may need to be updated. This will allow Swagger to provide documentation on the request and response types.

The FlatFilebookService may need to be replaced with one which contains a private collection of Book records, with the GetBook method returning only the matching record.

Remember that we haven't decided on a data storage technology or technique yet. So we don't need to implement a data repository.

Requirements

GaProgMan commented 3 years ago

Incorrectly merged changes from the /feature/get-by-id branch into main. This Issue was fixed with commit 0bf475d