Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.17 KB

File metadata and controls

61 lines (44 loc) · 1.17 KB

Swagger

curl 'http://localhost:5000/weatherforecast'
curl 'http://localhost:5000/swagger'

Register

curl 'http://localhost:5000/api/v1/Account/register' \
  -X POST \
  -H 'Content-Type: application/json' \
  --data-raw '{"email":"nguyentrucxjnh@gmail.com","password":"Aa@123456","confirmPassword":"Aa@123456"}'

Login

curl 'http://localhost:5000/api/v1/Account/login' \
  -X POST \
  -H 'Content-Type: application/json' \
  --data-raw '{"email":"nguyentrucxjnh@gmail.com","password":"Aa@123456","rememberMe":false}'

Refresh token

curl 'http://localhost:5000/api/v1/Account/refresh' \
  -X POST \
  -H 'Content-Type: application/json' \
  --data-raw '{"accessToken":"","refreshToken":""}'

Get Current user

curl 'http://localhost:5000/api/v1/Account/current' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer ACCESS_TOKEN'

Get Customers

curl 'http://localhost:5000/api/v1/Customer' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer ACCESS_TOKEN'

Create Customer

Update Customer

Delete Customer

Get a Customer by id

Get Customer History

Get Customers By Pagination