This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-25
Channels
- # beginners (26)
- # boot (1)
- # cider (21)
- # cljdoc (26)
- # cljs-dev (7)
- # clojure (99)
- # clojure-gamedev (6)
- # clojure-italy (5)
- # clojure-nl (4)
- # clojure-russia (1)
- # clojure-spec (5)
- # clojure-uk (59)
- # clojurescript (49)
- # clojutre (6)
- # component (13)
- # core-async (2)
- # cursive (30)
- # data-science (2)
- # datomic (29)
- # emacs (9)
- # fulcro (100)
- # hyperfiddle (1)
- # jobs (2)
- # luminus (4)
- # lumo (23)
- # off-topic (22)
- # other-languages (37)
- # parinfer (1)
- # re-frame (2)
- # reagent (5)
- # reitit (12)
- # ring (12)
- # rum (3)
- # shadow-cljs (168)
- # slack-help (1)
- # spacemacs (7)
- # specter (2)
- # tools-deps (8)
- # vim (11)
- # yada (3)
I’ve inherited a legacy REST API that’s largely undocumented, but I also have the accompanying legacy web app that consumes it. I’d like to document and specify that API so I can start writing tests and changing implementations etc. I was looking around for tools to help with that, but couldn’t find any.
I was thinking of putting a proxy between client and server, which would let requests pass through but also log them so then I can look for similarities etc, and generate some crude spec from it. Does that sound reasonable?
The amount of spaghetti code in both codebases is a thing to marvel at. I’d rather treat them both as black boxes to begin with.
Also, the major issue the org is having is lack of an explicit contract between client and server.
(This is a node/mongo/jquery combo that is 5 years old - it’s not a platform I want to touch... yet)
I was thinking I’d setup this proxy, click around in the website, dump everything into a huge edn file and then use Clojure to explore the data interactively.
I see, maybe non-intrusive observing is the best approach then. 🙂 I’ve used this with Node to capture HTTP-calls. It can also output them as data (JSON). It may or may not be useful in your case. https://github.com/nock/nock#recording
Or, you know, "milli-lambdas".
@victor.cleja Yeah, I thought that Gradle is more popular
I think Gradle is great, you can use plain Java in Groovy, I've never tried sbt (https://www.scala-sbt.org/)