-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #318 from linkernetworks/johnlin/update-password
[Task] update password
- Loading branch information
Showing
4 changed files
with
165 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
- [Signup](#signup) | ||
- [Verify Token](#verify-token) | ||
- [Signin](#signin) | ||
- [Update Password](#update-password) | ||
- [Create User](#create-user) | ||
- [List User](#list-user) | ||
- [Get User](#get-user) | ||
|
@@ -59,14 +60,13 @@ | |
- [Delete Namespace](#delete-namespace) | ||
- [OVS](#ovs) | ||
- [Get PortInfos](#get-portinfos) | ||
|
||
|
||
|
||
## User | ||
|
||
### Signup | ||
|
||
**POST /v1/user/signup** | ||
**POST /v1/users/signup** | ||
|
||
No need to give a role, server will assign a "user" role. | ||
|
||
|
@@ -105,7 +105,7 @@ Response Data: | |
|
||
### Verify Token | ||
|
||
**GET /v1/user/verify/auth** | ||
**GET /v1/users/verify/auth** | ||
|
||
with a authorization JWT key | ||
|
||
|
@@ -141,6 +141,28 @@ Response Data: | |
} | ||
``` | ||
|
||
### Update Password | ||
|
||
**PUT /v1/users/password** | ||
|
||
Example: | ||
|
||
```json | ||
{ | ||
"username":"[email protected]", | ||
"password":"password" | ||
} | ||
``` | ||
|
||
Response Data: | ||
|
||
```json | ||
{ | ||
"error": false, | ||
"message": "password successfully changed" | ||
} | ||
``` | ||
|
||
|
||
### Create User | ||
|
||
|
@@ -185,9 +207,7 @@ Response Data: | |
|
||
Request | ||
|
||
``` | ||
GET /v1/users | ||
``` | ||
**GET /v1/users** | ||
|
||
|
||
Response Data: | ||
|
@@ -262,9 +282,7 @@ Response | |
|
||
Request | ||
|
||
``` | ||
DELETE /v1/users/5b5aba2d7a3172bca6f1e280 | ||
``` | ||
**DELETE /v1/users/5b5aba2d7a3172bca6f1e280** | ||
|
||
Response Data | ||
|
||
|
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