Is there a way to automatically create axios requests code samples for Swagger API Design?

163 Views Asked by At

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?

1

There are 1 best solutions below

0
MikeRalphson On

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/