A simple RESTful backend for managing a book collection
- Download and install .NET SDK version 7.0.306 https://dotnet.microsoft.com/en-us/download/dotnet/7.0
- Navigate to project root
BookCollection/
and rundotnet run
. If you want to clear the database on startup, rundotnet run ClearDb
- Send HTTP requests to
http://localhost:9000
-
POST /books
{ "title": <required_string>, "author": <required_string>, "year": <required_int>, "publisher": <optional_string>, "description": <optional_string> }
-
GET /books
- optional query parameters:
- author: string
- year: int
- publisher: string
- optional query parameters:
-
GET /books/<id>
-
Delete /books/<id>