This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-20
Channels
- # announcements (8)
- # babashka (19)
- # beginners (100)
- # boot (3)
- # calva (16)
- # cider (8)
- # cljdoc (6)
- # cljsrn (15)
- # clojure (73)
- # clojure-europe (7)
- # clojure-france (1)
- # clojure-italy (12)
- # clojure-nl (11)
- # clojure-sg (1)
- # clojure-uk (17)
- # clojurescript (63)
- # cursive (22)
- # data-science (2)
- # datomic (2)
- # defnpodcast (1)
- # docs (1)
- # fulcro (7)
- # graalvm (8)
- # jackdaw (1)
- # kaocha (11)
- # off-topic (26)
- # pedestal (4)
- # planck (1)
- # re-frame (35)
- # reitit (5)
- # ring (3)
- # shadow-cljs (25)
- # slack-help (11)
- # spacemacs (8)
- # specter (2)
- # tools-deps (61)
- # vscode (6)
- # xtdb (3)
Hi, How should I translate typical POST JSON body camel case keys into typical kebab case Clojure ones? I have not been able to find out in docs yet, not even by searching Google. Thanks in advance !
i usually use camel-snake-kebab for this sort of thing: https://clj-commons.org/camel-snake-kebab/ in general i'd recommend not changing data in this way - it's much easier to reason about when names stay the same. might make sense in your case though!
hi conan, thanks for your reply ! I have been trying to perform this setup according to https://github.com/metosin/reitit/blob/94e8a80b18cd80867765a089535a9cb6d4aea26a/doc/ring/content_negotiation.md, which seems a right context to implement your suggestions, but gave up as I've realized that, as I will implement front-end with Clojurescript, I could use EDN instead of JSON. Thanks !
hey, is there any way to have both ring/router
and http/router
routes handled at the same time? I'd like to re-use most of ring middlewares I have already written, but also to have a few separate routes working in purely asynchronous way, preferrably with interceptors which http/router handles.