Skip to content

Commit

Permalink
[#9] update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fakhri007 committed Dec 7, 2020
1 parent 4049748 commit 90e210e
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions doc/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,7 @@ HTTP Code | Status | Description
- username : required and not empty
- password: required and not empty

<<<<<<< HEAD
*if any special logic, please write down the logic here. thanks*
=======
*if any special logic, please write down the logic here*
>>>>>>> add validation logic on login




Expand Down Expand Up @@ -424,7 +418,7 @@ Key | Value
--- | ---
Content-Type | application/json
Accept | application/json
Email | application/json
Email | [email protected]

### Request Payloads
Name | Type | Example Value
Expand All @@ -436,7 +430,7 @@ re_new_password | string | jakaRTa!2021
{
"old_password": "jakaRTa!2020",
"new_password": "jakaRTa!2021",
"re_new_password": "jakaRTa!2021",
"re_new_password": "jakaRTa!2021"
}
```
### Response Payloads
Expand Down Expand Up @@ -464,7 +458,7 @@ HTTP Code | Status | Description
"id":1,
"name": "Jacky Chan",
"username": "jacky",
"email": "[email protected]",
"email": "[email protected]"
}
}
}
Expand Down Expand Up @@ -806,7 +800,7 @@ Response Payload :
Request payload :
```
{
"token": "c4ca4238a0b923820dcc509a6f75849b"
"token": "c4ca4238a0b923820dcc509a6f75849b",
"new_password": ""
}
```
Expand All @@ -827,7 +821,7 @@ Response Payload :
Request Payload :
```
{
"token": "c4ca4238a0b923820dcc509a6f75849b"
"token": "c4ca4238a0b923820dcc509a6f75849b",
"new_password": "asal"
}
```
Expand All @@ -848,7 +842,7 @@ Response Payload :
Request Payload :
```
{
"token": "c4ca4238a0b923820dcc509a6f75849b"
"token": "c4ca4238a0b923820dcc509a6f75849b",
"new_password": "jakaRTa!2020",
"re_new_password": "asal"
}
Expand All @@ -871,7 +865,7 @@ Response Payload :
Request Payload :
```
{
"token": "c4ca4238a0b923820dcc509a6f75849b"
"token": "c4ca4238a0b923820dcc509a6f75849b",
"new_password": "jakaRTa!2021",
"re_new_password": "jakaRTa!2021"
}
Expand Down

0 comments on commit 90e210e

Please sign in to comment.