0

I wonder if I can generate code snippets or axios request sample codes for Swagger UI on my API documentation.

Is there any way to do it automatically?

Gabriel TN
  • 694
  • 1
  • 5
  • 9

1 Answers1

1

I don't think Swagger-UI supports code-snippets directly. You can do this in a Postman documentation collection or using an OpenAPI extension in ReDoc. https://redocly.com/docs/api-reference-docs/specification-extensions/x-code-samples/

MikeRalphson
  • 2,247
  • 2
  • 15
  • 16