Fork me on GitHub
#luminus
<
2018-03-27
>
jmckitrick02:03:24

Is it possible to have swagger and Lucinia at the same time?

okwori12:03:42

I faced a similar challenge some weeks back, did a sample project showing that. Would raise a pr soon so +swagger and +graphql doesn't conflict https://github.com/Okwori/graphqltest

okwori12:03:56

same end point with mine tho...

jmckitrick14:03:39

Perfect, thanks!

jmckitrick14:03:08

I guess the only thing you lose is the built in query UI that pedestal provides

okwori15:03:43

You mean graph-i-ql ? That comes with it and works fine using the default post context entry point

jmckitrick16:03:15

Really? Ok, I’ll try it.

jmckitrick16:03:46

I thought you needed to run pedestal for that.

okwori21:03:40

It come packaged with lacina-pedestal but works perfectly here too.

myguidingstar02:03:36

@jmckitrick use different endpoints, ie /api/* for swagger and /graphql for lucinia

jmckitrick21:03:11

I’m reading the code generated with compojure-api, and I’m trying to understand why the home routes are wrapped in muuntaja restful-formats but I don’t see where the service routes (api endpoints) are.

yogthos21:03:18

compojure-api handles coercion internally, so it doesn't need to be wrapped with restful-format middleware

jmckitrick22:03:50

Thought so, thanks!