Fork me on GitHub
#liberator
<
2017-06-13
>
nblumoe19:06:56

Hi, is anyone aware of a reasonable approach to get a Swagger spec/doc for an API written with Liberator?

ordnungswidrig19:06:10

@nblumoe I’ve seen a lot of approaches. The challenge is that swagger is action/method-oriented whil liberator is resource oriented. One way I can see is to use a definition which will be transformed to the data that your swagger impl wants to see and be transformed into a map applicable for (liberator.core/resource). I think that’s the cleanest way.

ordnungswidrig19:06:33

But please take that with a grain of salt, I’ve got not much experience with swagger.