liberator

nblumoe 2017-06-13T19:37:56.642549Z

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

ordnungswidrig 2017-06-13T19:48:10.862186Z

@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.

ordnungswidrig 2017-06-13T19:49:33.891444Z

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