Hi ,
It’s a bit unclear what you’re trying to do that doesn’t work. In general, if your Swagger describes an endpoint as producing/consuming either JSON or XML, it will give you the dropdown to select the media type automatically, and changing its value will change the rendering. From: <[email protected]> on behalf of Thiru k <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Tuesday, 2 August 2016 at 11:52 To: Swagger <[email protected]> Subject: Dynamically change Schema Based on Content-Type Hi, I don't have much knowledge about Swagger-UI, I have started Implementing Swagger-UI to my Spring RestApi for last few days only. I don't know how to dynamically change the request "Example Schema" based on the content-type(JSON (or) XML). How do I achieve these by using annotations. Could you provide some suggestions or perfect examples for my scenarios. Let me know if more details needed. Dependencies: <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> <version>2.2.2</version> </dependency> -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
