How To Get Full Parameter From The REST API Request URL (Doc ID 2185577.1)

Last updated on SEPTEMBER 27, 2016

Applies to:

Oracle API Gateway - Version 11.1.2 and later
Information in this document applies to any platform.

Goal

OAG version is 11.1.2.4 SP4.

There is a REST API that receives an HTTP get parameter, and this API will return response in JSON format.

API gateway is put in front of this REST Service, so other users will send request to API gateway first. Then, the API Gateway will forward the request to the original REST API.

This HTTP GET has 4 parameters.

sample request to the original REST API : http://localhost/operation/handler_pl.ashx?key=abcde&cat=123&param1=def&param2=ghi
sample request to API Gateway : http://soagatewayhost:8080/operation/handler_pl.ashx?key=abcde&cat=123&param1=def&param2=ghi

There is a need to extract this param : "?key=abcde&cat=123&param1=def&param2=ghi"
How to get full parameter from the request url ?




 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms