http4s / rho

A self documenting DSL built on http4s
Other
295 stars 65 forks source link

Need help for adding multiple examples in a route. #1054

Open AnjaliSharma03 opened 3 months ago

AnjaliSharma03 commented 3 months ago

Hi, I have several routes for which I’m using http4s rho routes. I have two questions for the swagger page:

  1. I want to add multiple examples for each route. Is there anything I can use??? Currently I’m using org.http4s.rho.swagger.models: ModelImpl case class for defining the input example. But with that only one example can be added, how to add multiple examples?
  2. I also want to add description for each api in the swagger page such that when we click on the drill down button of a route the description occurs just below the api defined. Can you guide me how to do that as well ?

Thanks in advance 😊