updated readme.md

This commit is contained in:
Peter Szanto
2016-08-01 15:16:00 +02:00
parent abd5b3f4de
commit 9cc4e1fee0
2 changed files with 19 additions and 1 deletions

View File

@@ -1,5 +1,14 @@
# swagger-petstore-spring-cloud
Spring cloud (Feign) client can be generated using the below command :
```shell
swagger-codegen-cli generate \
-l spring \
-i http://petstore.swagger.io/v2/swagger.json \
-DhideGenerationTimestamp=true
```
example is [here](https://github.com/swagger-api/swagger-codegen/blob/master/bin/spring-cloud-feign-petstore.sh)
## Requirements
Building the API client library requires [Maven](https://maven.apache.org/) to be installed.

View File

@@ -1,6 +1,15 @@
# Swagger generated API stub
Spring stub can be generated using the below command :
```shell
swagger-codegen-cli generate \
-l spring \
-i http://petstore.swagger.io/v2/swagger.json \
-DinterfaceOnly=true,singleContentTypes=true,hideGenerationTimestamp=true
```
example is [here](https://github.com/swagger-api/swagger-codegen/blob/master/bin/spring-stubs.sh)
Spring Framework stub