-
Notifications
You must be signed in to change notification settings - Fork 8
API
Paul D Barham edited this page Feb 12, 2020
·
4 revisions
PLEASE NOTE: the API's have not been maintained for about a year.
You will find the routes in routes/api.php
.
The API controllers are in app/Http/Controllers/API
APP_URL=http://cmr-clinic-admin-api.test
php artisan passport:keys --force
php artisan passport:install --force
Put these keys as comments in your .env
php artisan tinker
>>> $user = User::find(1)
>>> $token = $user->createToken('Hackerpair')->accessToken
=> "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIs...Um1Py-KdjXfQ"
PASSWORD_CLIENT_ID=2
TEST_API_TOKEN="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1Ni..."
In OSX not your Vagrant box
php artisan cms:api-test
This is approximately what we are sending.