masterskill/afa-api-laravel

A package for the AFA Code API Integration, that needs to interacts with it's database and existing database

1.0.3 2024-09-27 09:54 UTC

This package is auto-updated.

Last update: 2024-09-27 09:55:09 UTC


README

API v0.2.1 from the AFACodes

Endpoints and functionalities of the Logistic Grid, syntax “CM-$etc”. For Scientific Grid (syntax “CM+$etc”) and covers, see next documentation. We use, instead a Swagger, the “page endpoint” that is self-explanatory.

Installation

With composer

composer require masterskill/afa-code-laravel

City Querying

For querying a city, you should initialize the cityQuery class.

Make sure you have the App\Models\City on the project.

use Masterskill\AfaApiLaravel\Domains\Http\City\CityQuery;

$cityQuery = new CityQuery();

$query ="CM-SOA";

$result = $cityQuery->query($query);

print_r($cityQuery);