zalando-stups / swagger1st

A Clojure Ring handler that parses, validates and routes requests based on your Swagger definitions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement swagger client

sarnowski opened this issue · comments

Similar to the ring router, implement an http client, that uses a swagger definition to construct an appropriate request.

(def call (create-client "api.yaml"))

(call "my-operation-id" {:path {:param1 "value1"}})

Client will figure out operation by operationId and then construct request with the given parameter map.