compojure-api
compojure-api copied to clipboard
Sweet web apis with Compojure & Swagger
This issue is created per [my Clojurians Slack convo with @ikitommi on 15 February 2017](https://clojurians-log.clojureverse.org/ring-swagger/2017-02-15.html). When introducing *compojure-api* to existing *compojure* projects, one often prefers à la carte access to...
The current file upload wiki: https://github.com/metosin/compojure-api/wiki/Swagger-aware-File-uploads only works with schema. How to do this with clojure spec? Thanks.
## Library Version(s) 2.0.0-alpha2 ~ 2.0.0-alpha17 ## Problem The server use Clojure 1.9 and spec, set JVM -Xmx=384m. Post data to server repeatedly, and then server terminate by "OutOfMemoryError" later....
Not sure if thats by design, since Swagger doesn't seem to represent well pure maps, i.e. {s/Str s/Str}, but handling of those is broken atm. What happens is that the...
using swagger-routes under context fails to produce the correct path for swagger.json ```clojure (ring/context "/docs" [] (docs/swagger-routes {:ui "/" :spec "/swagger.json" :data {:info {:title "Bla Bla" :description "Bla Bla"}}})) ```...
Currently there is an API which coerces a response to the json content. It would be useful for testing if the reverse mapping is also provided by default. Example: ```clojure...
When making: ``` curl -X POST \ 'http://localhost:7777/foo?rule_name=foo.logic&force_overwrite=true&version=1.1' \ -H 'accept: application/json' \ -H 'cache-control: no-cache' \ -H 'content-type: text/plain' \ -d 'bla' ``` the following definition behaves correctly: ```...
The `compojure.api.routes/Route` abstraction enables any routing lib to be used. There could be a examples for different routing libs and there could be even a own (collect-the-best-parts-of-existing-implementations) router too. One...
separate namespace `compojure.api.buddy` with registered dispatchers for making it easy to use them from c-api. Something like: ``` clojure (context* "/api" [] :authenticated? true (context* "/admin" [] :auth-handlers [admin-access operator-access]...
## Library Version(s) [metosin/compojure-api "1.1.13"] [compojure "1.6.1"] ## Problem I have two handlers, defined as (compojure.api.sweet/defapi restful-routes...) (compojure.core/defroutes public-routes...) When I combine them with (compojure.core/routes #'restful-routes #'public-routes) the POST requests...