swagger-api / swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
http://swagger.io
Apache License 2.0
16.99k stars 6.03k forks source link

Add endpoint examples defined in the spec to API servers #5423

Open wing328 opened 7 years ago

wing328 commented 7 years ago
Description

Similar to what we've done for SpringMVC generator, we want to add support of endpoint examples defined in the spec to the auto-generated server stubs.

Ref: https://github.com/swagger-api/swagger-codegen/pull/5411

Endpoint example support in the server generators:

Suggest a Fix

5411 is a good reference. If anyone wants to contribute to this task, please reply to let us know. Thank you.

thure commented 7 years ago

Just a heads-up: I'm looking into doing a Lumen branch based on #5411. Thanks for organizing everything here 😄

wing328 commented 7 years ago

Thanks @thure.

FYI. The lambda functions have been renamed to lambdaEscapeDoubleQuote and lambdaRemoveLineBreak