Question

4
Replies
99
Views
ElenaM80 Member since 2014 4 posts
Cognizant
Posted: 6 months ago
Last activity: 6 months ago

Service REST make path param optional

Hi!!

I have the following concern regarding Service REST for v8.3. I am trying to use just one endpoint to be reusable for different methods: POST, PATCH, … in order to maintain just one service rule.

As a requirement, for POST method it is not required any parameter. However for the rest of the methods it is.

I am using as path param the caseID. So the issue is that if I create an endpoint like this:

https://hostname/ServicePackageName/v1/case/{caseID}

POST method is not working if I do the request without the path parameter, for example:  https://hostname/ServicePackageName/v1/case

because I can see that caseID path parameter is required, is it possible to make this path param NOT required?

Note: to be compliant with client requirements it is not possible to use query parameters.

***Edited by Moderator: Pallavi to update platform capability tags***

Pega Platform 8.3 Data Integration
Share this page LinkedIn