- you can use this command for sync countries and currencies:
- you can set this command in cron job for keeping sync countries and currencies
php artisan countries:sync
- you can store new user in this route
- Accept: application/json in Header
- Method: POST
http://localhost:8000/api/users
- you can update new user in this route
- Accept: application/json in Header
- Content-type: application/json in Header
- Method: PUT
http://localhost:8000/api/users/{id}
-
you can get users in this route
-
Accept: application/json in Header
-
Method: GET
-
you can sort with ?sort=currency | ?sort=country
-
you can filter with ?currency={code} | ?country={cca2}
http://localhost:8000/api/users -
you can delete a user in this route
-
Accept: application/json in Header
-
Method: DELETE
http://localhost:8000/api/users/{id}