diff --git a/README.md b/README.md index c0c9d94..8eb24c3 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,18 @@ Grasscutter Authentication System - All payload must be send with `application/json` and Compact JSON format ( without unnecessary spaces ) - Auth endpoint is: - Check auth status : `/grasscutter/auth_status` (GET) - - Register: `/grasscutter/register` (POST)
payload : `{"username":"username","password":"password","password_confirmation":"password_confirmation"}` - - Login: `/grasscutter/login` (POST)
payload : `{"username":"username","password":"password"}` - - Change password: `/grasscutter/change_password` (POST)
payload : `{"username":"username","new_password":"new_password","new_password_confirmation":"new_password_confirmation","old_password":"old_password"}` + - Register: `/grasscutter/register` (POST) + ``` + {"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: - `status` : `success` or `error` - `message` : `success` or `error` message :