forked from loafle/openapi-generator-original
add readme to PHP sample app
This commit is contained in:
parent
9a6392a758
commit
e9a8a8d755
20
samples/petstore/php/README.md
Normal file
20
samples/petstore/php/README.md
Normal file
@ -0,0 +1,20 @@
|
||||
# Sample Petstore PHP application
|
||||
|
||||
Here's a PHP 5 [Swagger](http://swagger.wordnik.com/) client for the Petstore
|
||||
sample application. See the interactive Swagger documentation at
|
||||
http://petstore.swagger.wordnik.com/ for more information on this
|
||||
demonstration API.
|
||||
|
||||
The client contained in ```petstore``` was generated using this
|
||||
```swagger-codegen``` project, with the following command:
|
||||
|
||||
./bin/runscala.sh com.wordnik.swagger.codegen.BasicPHPGenerator http://petstore.swagger.wordnik.com/api/resources.json special-key
|
||||
|
||||
To run the tests, you will need
|
||||
[PHPUnit](https://github.com/sebastianbergmann/phpunit) installed on your
|
||||
system. With the ```phpunit``` command in your path, run the tests for each
|
||||
resource as follows:
|
||||
|
||||
phpunit tests/PetApiTest.php
|
||||
phpunit tests/StoreApiTest.php
|
||||
phpunit tests/UserApiTest.php
|
Loading…
x
Reference in New Issue
Block a user