An example RESTful API with .NET 5.0
- applicationUrl:
http://localhost:5010
- apiVersion:
1.0 (or 1)
Public endpoints require no Authentication.
- Login :
POST /api/v{:apiVersion}/login/
Private endpoints require a valid Token to be included in the header of the request.
- Show Categories :
GET /api/v{:apiVersion}/categories
- Show Category :
GET /api/v{:apiVersion}/categories/:id
- Show Products of Category :
GET /api/v{:apiVersion}/categories/:id/products
- Create Category :
POST /api/v{:apiVersion}/categories
- Update Category :
PUT /api/v{:apiVersion}/categories/:id
- Delete Category :
DELETE /api/v{:apiVersion}/categories/:id
- Show Products :
GET /api/v{:apiVersion}/products
- Show Product :
GET /api/v{:apiVersion}/products/:id
- Create Product :
POST /api/v{:apiVersion}/products
- Update Product :
PUT /api/v{:apiVersion}/products/:id
- Delete Product :
DELETE /api/v{:apiVersion}/products/:id
Furkan Işıtan