I am working on:
Java web application
Jersey/rest
Java 8
I have a list of entities, and for each entity the user has a link to create a sub-entity on the server (the values for the sub entity are computed on the server and require no user input).
I have a web page with something like this:
Entity 1
<a href=".../entity/1/subentity">Create sub</a>
Entity 2
Sub Already Exists
Entity 3
<a href=".../entity/2/subentity">Create sub</a>
...
However, I think according to REST this should be a PUT/POST instead of a GET. Do I really need to replace all these links with a form wrapped around each one to get around this issue?
Is there a way in Jersey to convert these GETs to PUTs on the server the way you can with HttpMethodOverrideFilter for POSTS?
EDIT: This web application will not publicly available.