From 9cc4e1fee07ddfd40699e2bb6425156d911b6668 Mon Sep 17 00:00:00 2001 From: Peter Szanto Date: Mon, 1 Aug 2016 15:16:00 +0200 Subject: [PATCH] updated readme.md --- samples/client/petstore/spring-cloud/README.md | 9 +++++++++ samples/client/petstore/spring-stubs/README.md | 11 ++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/samples/client/petstore/spring-cloud/README.md b/samples/client/petstore/spring-cloud/README.md index 0d2d58540db4..e00582169b81 100644 --- a/samples/client/petstore/spring-cloud/README.md +++ b/samples/client/petstore/spring-cloud/README.md @@ -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. diff --git a/samples/client/petstore/spring-stubs/README.md b/samples/client/petstore/spring-stubs/README.md index 99663f640822..fe1a6233e39a 100644 --- a/samples/client/petstore/spring-stubs/README.md +++ b/samples/client/petstore/spring-stubs/README.md @@ -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