--- # this is an empty front matter --- {% include header.html %}
ClearPress supports working in a RESTful fashion. That is to say there is a very systematic naming scheme for addressing entities and supporting the operations usually required:
The URL scheme looks something like this:
POST to http://server/application/entity
GET from http://server/application/entity/id
POST to http://server/application/entity/id
POST to http://server/application/entity/id;delete
GET http://server/application/entity/
GET http://server/application/entity/id;add
GET http://server/application/entity/id;edit
On the whole this is fine - default responses are in text/html and that's great. Occasionally we want to use XML or JSON representations - simple!
GET http://server/application/entity.xml
GET http://server/application/entity/id.js
GET http://server/application/entity/id.png