From d09915c09b0fdf96138688a6e822464b75394ca4 Mon Sep 17 00:00:00 2001 From: putrakuningan Date: Mon, 29 May 2023 04:21:02 +0000 Subject: [PATCH] Add API Usage Example --- readme.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/readme.md b/readme.md index 88b7ffd..f23d9a7 100644 --- a/readme.md +++ b/readme.md @@ -51,3 +51,34 @@ php artisan module:seed Auth ## Uninstall Packages If you uninstall a package from composer.json the module WILL be removed from the modules directory. + +# List & API Usage Example +Don't forget to add ``` Accept : application/json ``` on header every API Request + +## Register +``` +POST /api/register +``` + +``` +{ + "name" : "Demo", + "email" : "demo@demo.com", + "password" : "demo" + "passowrd_confirmation" : "demo" +} +``` + + +## Login +``` +POST /api/login +``` + +``` +{ + "email" : "demo@demo.com", + "password" : "demo" +} +``` +