feat: add backend-mock app
This commit is contained in:
20
apps/backend-mock/http/auth.http
Normal file
20
apps/backend-mock/http/auth.http
Normal file
@@ -0,0 +1,20 @@
|
||||
@port = 5320
|
||||
@type = application/json
|
||||
@token = Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwicm9sZXMiOlsiYWRtaW4iXSwidXNlcm5hbWUiOiJ2YmVuIiwiaWF0IjoxNzE5ODkwMTEwLCJleHAiOjE3MTk5NzY1MTB9.eyAFsQ2Jk_mAQGvrEL1jF9O6YmLZ_PSYj5aokL6fCuU
|
||||
POST http://localhost:{{port}}/api/auth/login HTTP/1.1
|
||||
content-type: {{ type }}
|
||||
|
||||
{
|
||||
"username": "vben",
|
||||
"password": "123456"
|
||||
}
|
||||
|
||||
|
||||
###
|
||||
GET http://localhost:{{port}}/api/auth/getUserInfo HTTP/1.1
|
||||
content-type: {{ type }}
|
||||
Authorization: {{ token }}
|
||||
|
||||
{
|
||||
"username": "vben"
|
||||
}
|
Reference in New Issue
Block a user