Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

API Restful - Get parameters passed into the url

$
0
0

Hi,

 

sorry but I am a very novice in API rest.

I created a service that handle my Zclass that implement the interface IF_HTTP_EXTENSION and so the method HANDLE_REQUEST.

When my service is called with a method GET, some parameters are passed into the url. For example

 

http://my_address.net:8000/my_folder/get_something?sap-client=100&param1=12345678

 

I want to retrieve the value of parameter "param1"

I tried using the method "server->request->get_uri_parameter"   passing the name "param1" but no values return. I tried with some others methods but nothing. I can see that anything happen in debug...

 

How can i retrieve the parameter, or better, the list of parameters passed?

 

 

Thanks a lot

KR

Massimo


Viewing all articles
Browse latest Browse all 3523

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>