I found one example with multiple responses definitions, https://github.com/metosin/compojure-api/blob/master/examples/thingie/src/examples/thingie.clj#L105. But would there be a way to have same status codes but different schema ? (I know it's not the best thing to do but just wondering)
@wontheone1 uploaded a file: https://clojurians.slack.com/files/U354VUKQA/F8K24FJF3/-.clj
@wontheone1 uploaded a file: https://clojurians.slack.com/files/U354VUKQA/F8KF5FW75/-.clj
Could I please show an example of having multiple response model with json response ?
I am not sure if I am doing something wrong or there s bug :)
Hi I got the multiple responses thing working the problem was elsewhere ! sorry about that.
One thing I cannot find any example is ... specifying responses that has no body
{:status 201} for example. I don't want to return any bodies. I tried the following things but they broke Swagger UI. So for now I am just putting there a dummy schema that's not really necessary for me
@wontheone1 uploaded a file: https://clojurians.slack.com/files/U354VUKQA/F8KP4U7PE/-.clj
specifying no-body responses supported in compojure-api? how do you do that ? thank you. (sorry for massive amounts of messages)
@hawari.rahman17 Yes; I know how to construct ring response with map but my question was about how do you define schema for response with no body for Swagger. Thank you. I see @ikitommi suggested workaround for my problem below !
Ah I see, I'm sorry that I misunderstood your question