Add API Usage Example

This commit is contained in:
putrakuningan 2023-05-29 04:21:02 +00:00
parent 6c0d2bf4ce
commit d09915c09b

View File

@ -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"
}
```