Fork me on GitHub
#ring-swagger
<
2016-09-02
>
dio19:09:43

Dear ring-swagger folks, I'm using compojure API and I'm loving it, but I have one minor issue, some of my routes have very long descriptions on the body, the description field appears to be very narrow and so the text continues "down" for a very long time. Is there either (a) a way for me to modify the width of that or (b) a way for me to specify my own CSS to use with swagger ui ?

dio19:09:59

or (c) a smarter option I'm not thinking of 🙂

bj19:09:27

Is it possible to use a server other than httpkit along with compojure-api?

dio19:09:58

@bj I'm just stopping by in this channel, so take my answer with a grain of salt, but yes, I used it with jetty

dio19:09:01

I require

dio19:09:04

[ring.adapter.jetty :as jetty]

dio19:09:08

and then I call

dio19:09:40

(-> (compojure-api/api api-map handler)
and add in all my wrappers

dio19:09:42

and then

dio19:09:06

(jetty/run-jetty app)
the result

bj19:09:18

Thank you!

dio20:09:05

it looked like maybe I could put custom js in conf.js to modify the css? I saw that kinda here https://github.com/metosin/ring-swagger-ui but it looks like maybe not, there's already some conf.js file packaged with compojure api

dio20:09:19

still hoping to figure out how I can modify that css without doing something crazy

dio20:09:11

I guess I can fork ring-swagger-ui, might be the best way I suppose

ikitommi21:09:14

@dio you can override the index.html by adding your own file to resources/swagger-ui/index.html on the client project. No need to fork.

dio21:09:04

@ikitommi worked like a charm, thank you so much!