This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-07
Channels
- # adventofcode (40)
- # aws (15)
- # babashka (76)
- # beginners (39)
- # calva (6)
- # cider (3)
- # clj-kondo (3)
- # clojure (89)
- # clojure-austin (1)
- # clojure-australia (4)
- # clojure-europe (42)
- # clojure-italy (9)
- # clojure-nl (27)
- # clojure-spec (8)
- # clojure-uk (17)
- # clojurescript (9)
- # conjure (1)
- # data-science (1)
- # datomic (19)
- # deps-new (4)
- # docker (9)
- # emacs (5)
- # events (1)
- # fulcro (36)
- # kaocha (31)
- # lambdaisland (5)
- # leiningen (3)
- # membrane (3)
- # nrepl (10)
- # off-topic (31)
- # pedestal (7)
- # reveal (47)
- # shadow-cljs (35)
- # sql (9)
- # test-check (1)
- # tools-deps (24)
- # uncomplicate (12)
- # xtdb (5)
How can I turn things like /foo/{id}
(swagger/openapi path specs) into something that pedestal understand, like /foo/:id
(string/replace "/foo/{bar}/car/{var}"
#"(\{[^\}]+\})"
(fn [[v _]]
(str ":" (subs v 1 (dec (count v))))))
You could cut down a bit by using an inner group, I think:
(string/replace "/foo/{bar}/car/{var}"
#"(\{([^\}]+)\})"
(fn [[_ _ token]]
(str ":" token)))
I'm implementing a REST interface that flows google style
it use things like "/orders/{order-id}/fulfillments:create-with-invoice"
https://cloud.google.com/apis/design/custom_methods
I still don't know how to handle this in pedestal.
Not even writing the path "manually"
I'm implementing a REST interface that flows google style
it use things like "/orders/{order-id}/fulfillments:create-with-invoice"
https://cloud.google.com/apis/design/custom_methods
I still don't know how to handle this in pedestal.
Not even writing the path "manually"