Skip to content

Commit

Permalink
Schema Code bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabh-egov committed Sep 12, 2024
1 parent 950070a commit 322bad5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public MDMSControllerV2(MDMSServiceV2 mdmsServiceV2) {
* @param schemaCode
* @return
*/
@RequestMapping(value="_create", method = RequestMethod.POST)
public ResponseEntity<MdmsResponseV2> create(@Valid @RequestBody MdmsRequest mdmsRequest) {
@RequestMapping(value="_create/{schemaCode}", method = RequestMethod.POST)
public ResponseEntity<MdmsResponseV2> create(@Valid @RequestBody MdmsRequest mdmsRequest, @PathVariable("schemaCode") String schemaCode) {
List<Mdms> masterDataList = mdmsServiceV2.create(mdmsRequest);
return new ResponseEntity<>(ResponseUtil.getMasterDataV2Response(mdmsRequest.getRequestInfo(), masterDataList), HttpStatus.ACCEPTED);
}
Expand Down

0 comments on commit 322bad5

Please sign in to comment.