Details
Description
Following the discussion on making OFBiz RESTful OFBIZ-4274 i implemented the support of segmented URIs without interfering with current mechanisms of URI resolution nor with overrideView() feature.
Combined with work on associating URIs and HTTP methods done by mthl in OFBIZ-10438 , we are now able to provide RESTful APIs as follows:
<request-map uri="foo/bar" method="get"> ... <request-map uri="foo/bar/{baz}" method="get"> ... <request-map uri="foo/bar/{baz}" method="post"> ...
After we matched a request-map having parametrized URI as in
uri="foo/bar/{baz}"
the value is available inside the request attributes with the corresponding key (here "baz")
The restful_URIs.patch allows segmented URI support.
The entitymaint_example.patch is a modified entitymaint part that serves as an example of possible application of new system.
Any questions or comments are welcomed.
Attachments
Attachments
Issue Links
- breaks
-
OFBIZ-11326 Entity find pagination(next, last, changes in the number of pages) stopped working
-
- Closed
-
- is related to
-
OFBIZ-4274 Implement a REST Servlet
-
- Closed
-
- relates to
-
OFBIZ-10438 Add method attribute to request-map to controll a uri can be called GET or POST only
-
- Closed
-