sofastack / sofa-rpc

SOFARPC is a high-performance, high-extensibility, production-level Java RPC framework.
https://www.sofastack.tech/sofa-rpc/docs/Home
Apache License 2.0
3.81k stars 1.17k forks source link

Provide a SOFARPC RESTful protocol and swagger integration demo #377

Closed khotyn closed 5 years ago

khotyn commented 5 years ago

Provide a SOFARPC RESTful protocol and swagger integration demo, so users can integration RESTful with swagger more easily.

khotyn commented 5 years ago

We provide a document about how to integrate SOFARPC RESTful service and swagger, http://www.sofastack.tech/sofa-rpc/docs/RESTful-Swagger, more easier integration support will be provided in the later version of SOFARPC.

alswl commented 5 years ago

我看这个文档,理解下来是每提供一个 OpenAPI 这样的 Endpoint,都需要写一个 OpenApiService 么?

khotyn commented 5 years ago

@alswl 只要一个 OpenApiService 就可以了。另外,文档中的这个能力后面会集成到下个版本中,有 swagger 依赖就会直接启用这个 OpenApiService