matthewlisp / matthewlisp.github.io

My website, template from a forkable Jekyll theme with Chinese UI and document
https://fromendworld.github.io/LOFFER
MIT License
0 stars 0 forks source link

How to build APIs with Clojure #6

Open matthewlisp opened 5 years ago

matthewlisp commented 5 years ago

http://matthewlisp.com/set-up-clojure-api/

Learn what you need and how to start developing your own API in clojure using this guide.

mpettis commented 4 years ago

Thanks for this! This was the right entry-level tutorial that I needed. It has already made some of the other articles I've read make more sense.

matthewlisp commented 4 years ago

Glad you liked! I plan to make the next steps of this article soon, like adding specs and database connections

zzak commented 4 years ago

Thanks for the post, it was an excellent refresher :)

On the last version of app.core you forgot to wrap the response in not-found:

   (not-found {:error "Not found"})))

Should be:

   (not-found (response {:error "Not found"}))))