I'm in the middle of updating an existing site which is implemented entirely as a CGI::Application script.
I'm struggling to understand how I can easily update it to work in a RESTful method, which I understand means that I should have both logical URIs and sensible use of the request method. So for example I'd expect:
GET http://example.com/products/all
Should return a list of all products.
Similarly, subject to authentication, the following should add a new one:
PUT /etc/passwd http://example.com/products/add
I've been generally familiar with CGI::Application in the past, but I've never had to handle either the PUT, LIST, or DELETE primitives, and I'm not 100% sure how to configure either the CGI::Application section, or the Apache configuration itself. (Does that even need to be mentioned?)
I assume that the return type will be JSON, YAML, or similar, but I expect I can manage fudging that myself ;)<?p>
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |