2017 © Pedro Peláez
 

library api-client-generator

This is a toolset to generate API client from Swagger specification.

image

photocreate/api-client-generator

This is a toolset to generate API client from Swagger specification.

  • Thursday, April 27, 2017
  • by photocreate
  • Repository
  • 28 Watchers
  • 2 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

api-client-generator

CircleCI Coverage Status, (*1)

What is api-client-generator?

This is a toolset to generate API client from Swagger specification., (*2)

Support languages

Supported languages are as below., (*3)

  • PHP

Run example

Clone project

$ git clone git@github.com:Photocreate/api-client-generator.git
$ cd api-client-generator

Run docker

$ cd example/petstore
$ docker-compose up -d

Access Swagger-UI

See http://localhost:8002/, (*4)

Generate API client

$ cd /path/to/project
$ bin/api-client-generator api:client:generate \
> --spec http://localhost:8002/v2/swagger.json \
> --output example/petstore/Petstore.php \
> --class Petstore --namespace "Example\Petstore"

Run test.

$ cd /path/to/project
$ vendor/bin/phpunit -c . example/petstore/PetstoreTest.php

The Versions

27/04 2017

dev-master

9999999-dev

This is a toolset to generate API client from Swagger specification.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Motohiro Imura