generate java google endpoints server stub from swagger API

前端 未结 2 2007
离开以前
离开以前 2021-01-22 00:47

I\'m looking for a way to generate a server stub for a java google endpoints backend project from a swagger API (yaml/json file).

Any suggestions?

Cheers, Asaf

相关标签:
2条回答
  • 2021-01-22 01:20

    You should explore swagger code-gen.

    https://github.com/swagger-api/swagger-codegen#to-generate-a-sample-client-library

    You can also explore Restlet studio : https://studio.restlet.com/apis/local/info (Server-skeletons and choose).

    hope it helps

    0 讨论(0)
  • 2021-01-22 01:33

    The easiest way is to import your Swagger/OpenAPI spec into https://editor.swagger.io and in the top menu bar click on "Generate Server" and then select Java-related server stub (e.g. JAX-RS, Spring and more)

    Or you can install Swagger Codegen locally. Here is a good starting point:

    https://github.com/swagger-api/swagger-codegen#getting-started

    0 讨论(0)
提交回复
热议问题