BasicProduct API is a simple product management API built with ASP.NET Core. It allows you to create, read, update, and delete products.
-
Clone the repository: git clone https://github.com/bbubb/BasicProduct.git
-
Navigate to the project directory: cd BasicProduct
-
Build the project: dotnet build
-
Run the project: dotnet run
- URL:
/api/products - Method:
GET - Response:
200 OKwith a list of products
- URL:
/api/products/{guid} - Method:
GET - Response:
200 OKwith the product details or404 Not Foundif the product does not exist
- URL:
/api/products - Method:
POST - Request Body:
ProductCreateRequestDto - Response:
201 Createdwith the created product details
- URL:
/api/products/{guid} - Method:
PUT - Request Body:
ProductUpdateRequestDto - Response:
200 OKwith the updated product details or404 Not Foundif the product does not exist
- URL:
/api/products/{guid} - Method:
DELETE - Response:
204 No Contentor404 Not Foundif the product does not exist