Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alfimonth authored Dec 7, 2023
1 parent 2c89345 commit abc8aa8
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,49 @@ POST /users
}
```

## Login
- Path
```http
POST /users
```
- Body Request
```javascript
{
"username": string,
"password": string,
}
```
- Example Body Request
```json
{
"username": "user1",
"password": "123user",
}
```

- Response
```javascript
{
"status": "success",
"message": "Login berhasil",
"data": {
"accessToken": string,
"refreshToken": string
}
}
```
- Example Response
```json
{
"status": "success",
"message": "Login berhasil",
"data": {
"accessToken": "......PNCc3eAbhRycNDbc",
"refreshToken": "......_H5GczcpSr2HXk0"
}
}
```


# Product
## Get All Product
Expand Down

0 comments on commit abc8aa8

Please sign in to comment.