Expand my Community achievements bar.

Sample | Submit Adaptive form to rest endpoint


Employee Advisor

Do you know you can submit adaptive form data and attachment to third party rest endpoint?




Here is a simple rest controller using Spring that you can use to test and merge with your java code:


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

public class EmployeeController {

@RequestMapping(method = RequestMethod.POST, consumes = { "multipart/form-data" }, value = "/getData")
public void myUser(@RequestPart("jcr:data") String data ) {

@GetMapping(path = "/sample")
public String myUser2() {
return "sample get";




0 Replies