https://github.com/rd003/productminiapi
Source code for image manipulation in .net core api.
https://github.com/rd003/productminiapi
aspnetcorewebapi dotnet-core imageupload
Last synced: 5 months ago
JSON representation
Source code for image manipulation in .net core api.
- Host: GitHub
- URL: https://github.com/rd003/productminiapi
- Owner: rd003
- License: mit
- Created: 2024-04-04T14:32:01.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-12T11:39:56.000Z (over 1 year ago)
- Last Synced: 2025-03-02T09:45:34.314Z (10 months ago)
- Topics: aspnetcorewebapi, dotnet-core, imageupload
- Language: C#
- Homepage: https://www.youtube.com/watch?v=dBoVlBhjkks&t=1s
- Size: 72.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ProductMiniApi
APIs for Image manipulation (Add/Update/Delete/GetALL)
## Tech Stack
- .Net 6 web api
- .EF Core 6
- MSSQL
## ImagePath
eg:
`https://localhost:7077/resources/5b7c9e4d-3324-4f71-9b4c-a938d7edafde.jpg`
## Endpoints
- GET: api/products
```
//response
[{"id":1,"productName":"Product 1","productImage":"5b7c9e4d-3324-4f71-9b4c-a938d7edafde.jpg","imageFile":null},{"id":2,"productName":"Product 2","productImage":"347c5bf5-df20-4b30-ad63-677c829820d2.jpg","imageFile":null}]
```
- POST: api/products
Content Type : Form Data
Body:
```
ProductName : STRING | REQUIRED
ImageFile: FILE | REQUIRED
```
- PUT: api/products/ {id:INTEGER}
Content Type : Form Data
Body:
```
Id: INTEGER | REQUIRED
ProductName : STRING | REQUIRED
ImageFile: FILE (Pass null , if you dont want to update image),
ProductImage : STRING | REQUIRED
```
- DELETE: api/products/{id:INTEGER}