refactor nest app to server folder
This commit is contained in:
15
server/api.http
Normal file
15
server/api.http
Normal file
@@ -0,0 +1,15 @@
|
||||
POST http://localhost:3000/auth/login
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"username": "admin",
|
||||
"password": "123456"
|
||||
}
|
||||
|
||||
> {% client.global.set("auth_token", response.body.access_token); %}
|
||||
|
||||
|
||||
### GET request with parameter
|
||||
GET http://localhost:3000/users
|
||||
Accept: application/json
|
||||
Authorization: Bearer {{auth_token}}
|
||||
Reference in New Issue
Block a user