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?
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?
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/