Question

2
Replies
63
Views
rajendhars3334 Member since 2018 1 post
Ven soft llc
Posted: 1 year ago
Last activity: 1 year ago
Closed

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***

Data Integration SR Exists
Moderation Team has archived post
Share this page LinkedIn