This is example project of making API with ASP.NET Core.
Tip
✔️ - provided query is free to use
- ✔️ GET
/Puzzle/result?search&page
- return puzzles by search parameters - ✔️ GET
/Puzzle/{puzzleId}
- return puzzle bypuzzleId
- ✔️ GET
/Brand/result?search&page
- return brands by search parameters - ✔️ GET
/Brand/{brandId}
- return brand bybrandId
- ✔️ GET
/Brand/{brandId}/owned?search&page
- return puzzles by search parameters that owned by brand with givenbrandId
-
✔️ GET
/User/{userId}
- return public information about user byuserId
-
✔️ GET
/User/{userLogin}
- return public information about user byuserLogin
-
✔️ GET
/User/{userId}/private
- return private information about user byuserId
, can be managed by account owner, used to making ordersrequest body
Content-Type: application/json { "email": "email", "password": "user_password" }
-
✔️ GET
/User/{userLogin}/private
- return private information about user byuserLogin
, can be managed by account owner, used to making ordersrequest body
Content-Type: application/json { "email": "email", "password": "user_password" }
-
✔️ POST
/User/create
- create account providing email and passwordrequest body
Content-Type: application/json { "name": "name", "surname": "surname", "login": "login", "email": "email", "password": "user_password" }
-
✔️ POST
/User/{userId}/update_password
- update account password providing email, old and new passwordrequest body
Content-Type: application/json { "new-password": "new_user_password", "email": "email", "password": "user_password" }
-
✔️ POST
/User/{userId}/update
- update account password providing email, old and new passwordrequest body
Content-Type: application/json { "name": "name", "surname": "surname", "login": "login", "address": "address", "email": "email", "password": "user_password" }
-
✔️ DELETE
/User/{userId}/delete
- deleting account from databaserequest body
Content-Type: application/json { "email": "email", "password": "user_password" }
-
✔️ POST
/Puzzle/create
- create puzzle providing email and passwordrequest body
Content-Type: application/json { "name": "name", "description": "description", "image_url": "image_url", "price": "price", "amount": "amount", "brand_id": "brand_id" "email": "email", "password": "user_password" }
-
✔️ POST
/Puzzle/{puzzleId}/update
- update puzzle providing email and passwordrequest body
Content-Type: application/json { "name": "name", "description": "description", "image_url": "image_url", "price": "price", "amount": "amount", "brand_id": "brand_id" "email": "email", "password": "user_password" }
-
✔️ POST
/Puzzle/{puzzleId}/delete
- delete puzzle providing email and passwordrequest body
Content-Type: application/json { "email": "email", "password": "user_password" }
-
✔️ POST
/Brand/create
- create brand providing email and passwordrequest body
Content-Type: application/json { "name": "name", "description": "description", "email": "email", "password": "user_password" }
-
✔️ POST
/Brand/{brandId}/update
- update brand providing email and passwordrequest body
Content-Type: application/json { "name": "name", "description": "description", "email": "email", "password": "user_password" }
-
✔️ POST
/Brand/{brandId}/delete
- delete brand providing email and passwordrequest body
Content-Type: application/json { "email": "email", "password": "user_password" }