You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't figure out why did I get this in json format and why not see Swagger UI to visaulize and interact with my services? I expect to see something like this: https://ibb.co/TYNT6SG
The text was updated successfully, but these errors were encountered:
It looks like you're looking for params in the wrong spot here (fn [{:keys [params]}] ...). If you're sending parameters as a body of the request via POST, then you'd need to do (fn [{{params :body} :parameters}] ...) instead. You also need to let Reitit know what the parameters are for it to be able to generate the Swagger UI. This is done by specifying the :parameters key, e.g:
I am trying to access my Swagger service endpoints. Here is the code:
Here is my project.clj:
But when I tried to access http://localhost:3000/api/swagger.json in browser I got this response:
I can't figure out why did I get this in json format and why not see Swagger UI to visaulize and interact with my services? I expect to see something like this: https://ibb.co/TYNT6SG
The text was updated successfully, but these errors were encountered: