This is a toolset to generate API client from Swagger specification.
Supported languages are as below.
- PHP
$ git clone [email protected]:Photocreate/api-client-generator.git
$ cd api-client-generator$ cd example/petstore
$ docker-compose up -d$ 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"$ cd /path/to/project
$ vendor/bin/phpunit -c . example/petstore/PetstoreTest.php