Sneaker API

Overview:

A RESTful Web API built with C# and ASP.NET Core (.NET 8) for managing a sneaker inventory. The project demonstrates clean backend architecture with a clear separation of concerns between the controller and service layers, dependency injection, and support for polymorphic JSON serialization to handle multiple sneaker types.

Tech Stack:

Backend: C# / .NET 8  |  Framework: ASP.NET Core Web API  |  Architecture: Service Layer Pattern  |  Serialization: System.Text.Json

Key Features:

Full CRUD operations for sneaker inventory  |  Polymorphic JSON support for multiple sneaker types (Casual, Running)  |  Service layer with dependency injection  |  Proper HTTP status codes (200, 201, 204, 404)  |  Clean separation of concerns between controller and service

Endpoints:

GET /sneakers — Get all sneakers  |  GET /sneakers/{id} — Get by ID  |  POST /sneakers — Add a sneaker  |  DELETE /sneakers/{id} — Delete a sneaker

SneakerAPI - Postman GET all sneakers
SneakerAPI - Postman POST request