ASP.NET Core 8 Web API for managing customers and their images.
Images are stored in Base64 format in a SQLite database.
Each customer can have up to 10 images.
- .NET 8 SDK
dotnet restore
dotnet run
API runs at:
https://localhost:5272
Swagger UI:
https://localhost:5272/swagger
POST /api/customers ¡ create customer with images
GET /api/customers ¡ get all customers
GET /api/customers/{id} ¡ get one customer
GET /api/customers/{id}/images/count ¡ count images
POST /api/customers/{id}/images ¡ add images
PUT /api/customers/{id}/images ¡ replace images
GET /api/customers/{id}/images/{imageId}/preview ¡ preview image
DELETE /api/customers/{id}/images ¡ delete all images
GET /api/customers/{id}/images/count - count how many images storing per customer