update readme

This commit is contained in:
muhammadeko 2022-04-29 07:50:15 +07:00
parent bb27c8f2bd
commit 7cadc86ac0
No known key found for this signature in database
GPG Key ID: 51366716C10E98B1

View File

@ -7,9 +7,18 @@ Grasscutter Authentication System
- All payload must be send with `application/json` and Compact JSON format ( without unnecessary spaces ) - All payload must be send with `application/json` and Compact JSON format ( without unnecessary spaces )
- Auth endpoint is: - Auth endpoint is:
- Check auth status : `/grasscutter/auth_status` (GET) - Check auth status : `/grasscutter/auth_status` (GET)
- Register: `/grasscutter/register` (POST) <br>payload : `{"username":"username","password":"password","password_confirmation":"password_confirmation"}` - Register: `/grasscutter/register` (POST)
- Login: `/grasscutter/login` (POST) <br>payload : `{"username":"username","password":"password"}` ```
- Change password: `/grasscutter/change_password` (POST) <br>payload : `{"username":"username","new_password":"new_password","new_password_confirmation":"new_password_confirmation","old_password":"old_password"}` {"username":"username","password":"password","password_confirmation":"password_confirmation"}
```
- Login: `/grasscutter/login` (POST)
```
{"username":"username","password":"password"}
```
- Change password: `/grasscutter/change_password` (POST)
```
{"username":"username","new_password":"new_password","new_password_confirmation":"new_password_confirmation","old_password":"old_password"}
```
- Response is `JSON` with following keys: - Response is `JSON` with following keys:
- `status` : `success` or `error` - `status` : `success` or `error`
- `message` : `success` or `error` message : - `message` : `success` or `error` message :