Skip to content
  • Nicolas Malin's avatar
    Implemented: REST, adding segmented URI support for webtools/entitymaint · 6e1c7b59
    Nicolas Malin authored
    (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 :
    
        entity/[cover]/{entityName}/{pkValues: .*}
    
    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.
    6e1c7b59