Add API Usage Example
This commit is contained in:
parent
6c0d2bf4ce
commit
d09915c09b
31
readme.md
31
readme.md
@ -51,3 +51,34 @@ php artisan module:seed Auth
|
|||||||
## Uninstall Packages
|
## Uninstall Packages
|
||||||
If you uninstall a package from composer.json the module WILL be removed from the modules directory.
|
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"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user