2

Whole idea is to create Mock service for UI team to test without actual API.

  • We have defined specification in .yaml files.
  • Now want to generate Swagger-UI and Mock rest URI with mock data.
  • Using spring-boot.

Please suggest some way to generate the same.

1 Answer 1

2

Given that you've the API documented in Swagger/OpenAPI spec (YAML format), you can use Swagger Codegen to generate Spring boot server stub.

Please pull the latest master of https://github.com/swagger-api/swagger-codegen and follow the instruction in the wiki:

https://github.com/swagger-api/swagger-codegen/wiki/Server-stub-generator-HOWTO#java-springboot

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.