2017 © Pedro Peláez
 

laravel-extension laravel-openapi-consumer

Laravel component to load an OpenAPIY JSON file and assist in consuming the underlying API.

image

bedezign/laravel-openapi-consumer

Laravel component to load an OpenAPIY JSON file and assist in consuming the underlying API.

  • Tuesday, October 4, 2016
  • by Blizz
  • Repository
  • 2 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

OpenAPI Consumer

PoC to see if it is possible to automatically consume an API that has an OpenAPI specification (pka Swagger)., (*1)

At this point the library is written for laravel., (*2)

If you need to use it, simply create a Client instance with the correct configuration, (*3)

$api = new \OpenAPI\Consumer\Client('json specification path', [<extra configuration>])

You can then call any operation from the API in a very simplistic way:, (*4)

$call = $api->operationName->with(['api-data' => 'api-data-value'])->execute();
if ($call->statusCode == 200) {
    dd($call->json);
}

The Versions

04/10 2016

dev-master

9999999-dev

Laravel component to load an OpenAPIY JSON file and assist in consuming the underlying API.

  Sources   Download

BSD 3-Clause

The Requires

 

laravel api swagger api-client consume openapi