Question
Ven soft llc
US
Last activity: 9 Sep 2019 0:16 EDT
Can we modify the OOTB request/response schemas generated by REST API?
I'm using Pega OOTB REST APIs to create cases. As part of my org standard, we need to use lower camel case for schema element in the REST response or request.
here is the sample response that Pega generates:
Q. Can i modify ErrorResponse to errorResponse? how does the automatic property mapping works? Did anyone tried changing like this?
Note: I just took Error Response as example, but we have handful of elements like this.
"definitions": {
"ErrorResponse": {
"properties": {
"pxObjClass": {
"type": "string",
"example": "Pega-API"
},
"errors": {
"type": "array",
"items": {
"$ref": "#/definitions/Error"
}
}
}
}
***Edited by Moderator: Lochan to add SR tag***