@RestController public class ContractorController extends Object
| Constructor and Description |
|---|
ContractorController() |
| Modifier and Type | Method and Description |
|---|---|
String |
createContractor(String requestJson,
javax.servlet.http.HttpServletRequest request) |
String |
getContractors(String code) |
String |
updateContractor(String requestJson,
javax.servlet.http.HttpServletRequest request) |
@RequestMapping(value="/egworks/contractors",
method=GET,
produces="application/json")
public String getContractors(@RequestParam(value="code",required=false)
String code)
@ResponseStatus(value=OK)
@RequestMapping(value="/egworks/contractor",
method=POST,
consumes="application/json",
produces="application/json")
public String createContractor(@RequestBody
String requestJson,
javax.servlet.http.HttpServletRequest request)
throws IOException
IOException@ResponseStatus(value=OK)
@RequestMapping(value="/egworks/contractor",
method=PUT,
consumes="application/json",
produces="application/json")
public String updateContractor(@RequestBody
String requestJson,
javax.servlet.http.HttpServletRequest request)
throws IOException
IOExceptionCopyright © 2015–2017 eGovernments Foundation. All rights reserved.