A RESTful Web API built with ASP.NET Core (.NET 8) for managing a sneaker inventory.
- C# / .NET 8
- ASP.NET Core Web API
- Dependency Injection
- RESTful architecture
The API follows a clean separation of concerns:
- Controllers — handle HTTP requests and responses
- Services — handle business logic
- Models — define the data structure
| Method | Endpoint | Description |
|---|---|---|
| GET | /sneakers | Get all sneakers |
| GET | /sneakers/{id} | Get a sneaker by ID |
| POST | /sneakers | Add a new sneaker |
| DELETE | /sneakers/{id} | Delete a sneaker |
- Clone the repo
- Navigate to the project folder
- Run
dotnet run - Test endpoints via Postman at
http://localhost:5148
{
"$type": "CasualShoe",
"name": "AirMax",
"price": 180,
"brand": "Nike",
"style": "Streetwear"
}