-
-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(system-server): impl application & account apis;
- Loading branch information
Showing
20 changed files
with
216 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
@token={{login.response.body.$.data.access_token}} | ||
|
||
### 注册 | ||
|
||
POST {{base_url}}/account/signup HTTP/1.1 | ||
Content-Type: application/json | ||
|
||
{ | ||
"username": "{{user}}", | ||
"password": "{{passwd}}" | ||
} | ||
|
||
|
||
### 登陆 | ||
# @name login | ||
|
||
POST {{base_url}}/account/login HTTP/1.1 | ||
Content-Type: application/json | ||
|
||
{ | ||
"username": "{{user}}", | ||
"password": "{{passwd}}" | ||
} | ||
|
||
### 管理员信息 | ||
|
||
GET {{base_url}}/account/profile | ||
Authorization: Bearer {{token}} | ||
|
||
|
||
### 编辑管理员 | ||
|
||
POST {{base_url}}/account/edit HTTP/1.1 | ||
Content-Type: application/json | ||
Authorization: Bearer {{token}} | ||
|
||
{ | ||
"name": "Maslow", | ||
"avatar": "https://work.zhuo-zhuo.com/file/data/23ttprpxmavkkuf6nttc/PHID-FILE-vzv6dyqo3ev2tmngx7mu/logoL)" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
@token={{login.response.body.$.data.access_token}} | ||
|
||
### Login | ||
# @name login | ||
|
||
POST {{base_url}}/account/login HTTP/1.1 | ||
Content-Type: application/json | ||
|
||
{ | ||
"username": "{{user}}", | ||
"password": "{{passwd}}" | ||
} | ||
|
||
|
||
### Create an application | ||
|
||
POST {{base_url}}/apps/create | ||
Content-Type: application/json | ||
Authorization: Bearer {{token}} | ||
|
||
{ | ||
"name": "test app" | ||
} | ||
|
||
|
||
### Get my applications | ||
|
||
GET {{base_url}}/apps/my | ||
Authorization: Bearer {{token}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.