compojure-api Questions

2

Solved

What is the proper way to declare an optional query parameter, with default value, when using compojure-api? One of my route elements is as follows (after reading this): (GET "/:id/descendants" [...
Waterhouse asked 7/3, 2016 at 18:14

1

Solved

for example the Luminus website states that Compojure route definitions are just functions that accept request maps and return response maps... (GET "/" [] "Show something") ... But compoj...
Testimonial asked 21/6, 2017 at 18:48

2

Solved

I'm trying to learn Clojure, and am blocked up around the literal function syntax. I can't figure out what the literal function equivalent of (defn fourteen [] 14) is. (def fourteen (fn [] 14)) ;;...
Gorse asked 2/3, 2016 at 2:5

1

Solved

When I have a definition of an API like this: (POST* "/register" [] :body-params [username :- String, password :- String, name :- String] (ok))) what's the appropriate way of making name opt...
Colfin asked 1/8, 2015 at 22:39

1

Solved

What's the difference between using :body-params and :form-params in practice when creating an API using compojure-api? For example: (POST* "/register" [] :body-params [username :- String, passw...
Trudey asked 1/8, 2015 at 22:41
1

© 2022 - 2024 — McMap. All rights reserved.