No option in rider to generate openapi.json from remote server
In VS there is an option to generate an openapi json from a url using `connected services > add service refrence > openapi`, which can generate a swagger.json from http://example/swagger/v1/swagger.json and put it in the solution (which can than be used to generate a clint using nswag). A similar option in rider would be very convenient
Please sign in to leave a comment.
Hello,
The similiar feature is implemented in Rider. To export OpenAPI specification from remote server, please refer to https://www.jetbrains.com/help/rider/OpenAPI.html#remote-spec for more information.
Besides, you can also generate OpenAPI specification from Endpoint window for entire project or particular endpoints.
The default generated template is YAML, but you can easily switch to JSON by right-clicking the document then choose “Export Self-Contained Specification(JSON)”:
Let me know if this doesn't meet your requirement.
Regards,
Tom