sil2/vf-api

1.2 2021-03-19 14:18 UTC

This package is auto-updated.

Last update: 2025-03-19 23:14:17 UTC


README

Requirements

Laravel 7

Setup

composer require sil2/vf-api

To create package db tables run

php artisan migrate

OR to create tables and get 100 test recorords

php artisan vf-api:install 

Publish package assets

php artisan vendor:publish --provider="Sil2\VfApi\VfApiIntegrationServiceProvider"

API token

Pick any token value Create an MD5 hash of this value and set as API_TOKEN in .env Use the original token value as bearer token for API requests

Usage

List available endpoints

php artisan route:list --path="api/widget"

Testing

vendor/bin/phpunit