Fixed: Change 'restMethod' by '_method' in request parameters (OFBIZ-11007) Some issue has been introduce on the previous commit 6e1c7b5 , corrected by this one : * the view link on ListGeneric failed * the paginate on ListGeneric failed
I also simplify the url writing with delegate the entity path generation and translation to two function on EntityUtil : entityToPath and getPkValuesMapFromPath
thanks to Pawan Verma to spot the pagination problem
Implemented: REST, adding segmented URI support for webtools/entitymaint (OFBIZ-11007) After implemeted Rest mechanism on rev. 1868963 by Mathieu Lirzin, I reviewed the rest url implemented by Artemiy Rozovyk for entitymaint in webtools.
With discussion with Mathieu and Leila, I selected this pattern :
and implemented like this :
entity/list -> list all entities entity/find/Party -> search entity/find/Party/Company -> displaying form for Party with id Company entity/create/Party -> creation form for a Party entity/edit/Party/Company/Company -> edit form for Party with id Company entity/change/Party/Company -> call crud following given http method entity/relations/Party -> View relation for Party
The old uris were currently kept and the oldest GenericWebEvent.updateGeneric() were updated to support rest method information.
Thanks Mathieu, Artemiy and Leila for their help to complete this improvement.