Article:
 |
|
The REST of the Web
|
| Subject: |
|
Shouldn't you be creating new URIs? |
| Date: |
|
2005-05-06 18:43:09 |
| From: |
|
jrbriggs
|
Response to: Shouldn't you be creating new URIs?
|
|
Absolutely. Which is exactly what I *have* done in the past when creating stricter REST web services. But for this simple example I decided not to go into that much detail -- which, on reflection, was obviously a mistake, considering your comments and others. ;-)
In any case, the main problem with providing for a proper URI (for example, something like /test5.py/XXXXX) as my example stands, is that I don't think the servlet mapping will pick up test5.py as the correct servlet to call. You probably end up with a Not Found error (I'm on holiday at the moment, so it's a bit hard to check). To create a stricter version, I believe subclassing PyServlet will be required in order to provide for the slightly more complicated uri structure. Unless someone else has a better idea of course.
|
Showing messages 1 through 4 of 4.
-
Shouldn't you be creating new URIs?
2005-05-08 12:32:12
nferrier
[View]
-
Shouldn't you be creating new URIs?
2005-05-08 18:23:57
jrbriggs
[View]
-
Shouldn't you be creating new URIs?
2005-05-09 02:50:09
nferrier
[View]
-
Shouldn't you be creating new URIs?
2005-05-12 05:48:17
r.p.wilson
[View]
Errr... no. Just make sure the servlet mapping has a pattern that looks like:
<url-pattern>/test5.py/*</url-pattern>