Creating a REST Server in Compojure
Page 1 of 6
Next >
In this chapter from Clojure Recipes, you will build the first of two REST servers. This is a simple one to do in Compojure. The REST server we build will receive a REST call over http. You will test it using a command line tool, curl.
This chapter is from the book
In this chapter we will build the first of two REST servers. This is a simple one to do in Compojure. The REST server we build will receive a REST call over http. We will test it using a command line tool, curl.
Assumptions
In this chapter we assume the following:
- You have Leiningen installed and on your path on the command line.
- You know how to use curl (whether on a Mac or a PC) and have it on your path.
- You understand the concept of http parameters being passed via a GET request URI and via a POST form parameters request.
Page 1 of 6
Next >