cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a REST API to accept undefined variables in URL & Headers?

Aseesh
Discoverer
0 Kudos

Hello SAP Community,
 
We need to develop an API in SAP PO that will be consumed by another system, but the requirement is in such a way that we should be able to accept API calls regardless of what’s sent in the {variable} part of the example URL below.
 
Example URL: https://host:port/RESTAdapter/{variable1}/{variable2}/{variable3}...../{variablen} where variables, parameters and number of variables & parameters are not predefined and can be anything.

Headers, payload structures & operations (GET, POST etc.) as well are all going to be variable. We would never know what the invoked URL, headers, payload structures and HTTP methods will be. Variables can be anything & everything is what we were told. These variables from sender are also expected to be captured by PO & utilized when making the connection with receiver. Please advise if this can be implemented.

Accepted Solutions (0)

Answers (0)