From 7cadc86ac0cd63f955ffc81254630f1d1b312699 Mon Sep 17 00:00:00 2001 From: muhammadeko Date: Fri, 29 Apr 2022 07:50:15 +0700 Subject: [PATCH] update readme --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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 :