This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
Tip for beginners. If you have running repl and want to test a function in your namespace you can write a (comment ...) form directly in the namespace and place a function call in there and eval the expression. This saves on copying and pasting to and from the repl, and you get the added benefit of some documentation for the expected usage of the function.
Add a comma at the end (comma .... ,)
it helps with unwanted paredits as per @U04V70XH6
Is there a tool that'd generate OpenAPI spec for me from looking at code? This way i could serve SwaggerUI
Kinda like OpenAPI and http://ASP.NET Core do
also, if anyone would be kind enough to point me to any resource for developing REST API with clojure, that'd be greatly appreciated :)
Can check out: • https://github.com/seancorfield/usermanager-example • https://github.com/prestancedesign/usermanager-reitit-example 2 examples of similar ideas but using different tooling in clojure
Neither of those present a REST API (yet -- it's on my list), but I'd point you at Compojure, Compojure-API, or Liberator depending on exactly how "REST" you need to be, whether you want Swagger support, etc and how much complexity you're willing to learn/bear.
First time seeing this - thanks Sean
Have a look at Jacek’s reitit course https://www.jacekschae.com/learn-reitit-pro It costs a little money, but it will show you - step by step - how to build an API server, with swagger, content negotiation etc.
For server side, take a look at https://github.com/juxt/yada , https://github.com/juxt/apex and its use in https://github.com/juxt/site . On the client side, take a look at https://github.com/oliyh/martian