Skip to content

miketorreno/handyman-api

Repository files navigation

Handyman API

The API for handyman web app.


Install

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

Usage

API documentation

http://localhost/docs

Admin

http://localhost/admin

email: [email protected]
password: password


email: [email protected]
password: password

Auth

Headers

Accept: application/json

Authorization: Bearer [token]

Path Parameters

Register

[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.


Login

[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.


Logout

[POST] http://localhost/api/logout

Make sure to include the authorization token.


Send the authorization token with every POST, PUT & DELETE requests


Tests

php artisan test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published