Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) Fix no adapter error when saving a form resource #623

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import javax.servlet.http.HttpServletResponse;

@Controller("webservices.rest.formResourceController")
@RequestMapping(value = "/rest/" + RestConstants.VERSION_1 + "/form/{uuid}/resource/{resourceUuid}/value")
@RequestMapping(value = "/rest/" + RestConstants.VERSION_1 + "/form")
public class FormResourceController1_9 extends MainResourceController {

@Autowired
Expand All @@ -36,7 +36,7 @@ public class FormResourceController1_9 extends MainResourceController {
@Autowired
private FormService formService;

@RequestMapping(value = "/rest/" + RestConstants.VERSION_1 + "/form/{uuid}/resource/{resourceUuid}/value", method = RequestMethod.POST, headers = { "Content-Type=multipart/form-data" })
@RequestMapping(value = "/{uuid}/resource/{resourceUuid}/value", method = RequestMethod.POST, headers = { "Content-Type=multipart/form-data" })
@ResponseBody
public Object createResourceValue(@PathVariable("uuid") String formUuid,
@PathVariable("resourceUuid") String resourceUuid, @RequestParam("value") MultipartFile file,
Expand All @@ -56,7 +56,7 @@ public Object createResourceValue(@PathVariable("uuid") String formUuid,
return new FormResourceResource1_9().asDefaultRep(resource);
}

@RequestMapping(value = "/rest/" + RestConstants.VERSION_1 + "/form/{uuid}/resource/{resourceUuid}/value", method = RequestMethod.GET)
@RequestMapping(value = "/{uuid}/resource/{resourceUuid}/value", method = RequestMethod.GET)
public void getResourceValue(@PathVariable("uuid") String formUuid, @PathVariable("resourceUuid") String resourceUuid,
HttpServletRequest request, HttpServletResponse response) throws Exception {
//Get the resource
Expand Down
Loading