luminus

tobias 2021-02-22T12:21:11.002800Z

I use the +swagger https://luminusweb.com/docs/profiles.html for the Luminus lein template and then adapt the examples in the generated boilerplate. If you use that profile and look in routes/services.clj you can see a /math/plus example route that reads x and y values from query parameters in a GET request.

tobias 2021-02-22T12:22:36.003Z

Using swagger is pretty nice because you get a web interface for all your REST endpoints so you can try them out even if you haven't coded the front end yet.