The API for handyman web app.
git clone https://github.com/miketorreno/handyman-api.git
cd handyman-api
composer install
cp .env.example .env
(add database credentials)
php artisan key:generate
php artisan filament:install --panels
php artisan migrate:fresh —seed
sail artisan scribe:generate
php artisan serve
email: [email protected]
password: password
email: [email protected]
password: password
Accept: application/json
Authorization: Bearer [token]
[POST] http://localhost/api/register
name:
email:
password:
password_confirmation:
You'll get back user object & an api token. Use the api token in the headers for subsequent requests.
[POST] http://localhost/api/login
email:
password:
You'll get back user object & an api token. Use the api token in the headers for subsequent requests.
[POST] http://localhost/api/logout
Make sure to include the authorization token.
php artisan test