Skip to content

Biralee11/SneakerAPI

Repository files navigation

SneakerAPI

A RESTful Web API built with ASP.NET Core (.NET 8) for managing a sneaker inventory.

Tech Stack

  • C# / .NET 8
  • ASP.NET Core Web API
  • Dependency Injection
  • RESTful architecture

Architecture

The API follows a clean separation of concerns:

  • Controllers — handle HTTP requests and responses
  • Services — handle business logic
  • Models — define the data structure

Endpoints

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

Running the Project

  1. Clone the repo
  2. Navigate to the project folder
  3. Run dotnet run
  4. Test endpoints via Postman at http://localhost:5148

Example POST Request

{
    "$type": "CasualShoe",
    "name": "AirMax",
    "price": 180,
    "brand": "Nike",
    "style": "Streetwear"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages