Question

I was just reading through a Compojure tutorial and saw this route example:

(GET "/addresses/:id" [id] (json-response (address/find id)))

I was wondering what is a proper official name for the kind of route where the part of path is the parameter, rather than an actual HTTP parameter (GET or POST)

I know what it does. I'd like to know what is its name. The best I could think of is friendly URL, although that is quite vague.

Was it helpful?

Solution

Clean URL

Or sometimes referred to as a "RESTful" url as they often go hand in hand with the REST style of web development

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top