on ‎2019 Nov 18 8:09 AM
Hi all,
I'm working on a simple ABAP Web Service to share some data with REST model, specially GET method.
I've been able to find documentation to implement a basic WS, it works as long as you request him in the right way. My WS use CL_REST_HTTP_HANDLER and as many CL_REST_RESOURCE as needed, for each handle parameter.
But i would like to add functionality for security as checking the method for GET-only or for HTTPS. Do you have any links, web sites or document that could help me to implement that ?
Thanks,
Alexandre
Request clarification before answering.
If your REST WS is made in SICF with class handler implementing IF_HTTP_EXTENSION interface.
Then you can check HTTP method (GET, POST, PATCH...) with:
"SERVER is TYPE REF TO IF_HTTP_SERVER in IF_HTTP_EXTENSION~HANDLE_REQUEST method
DATA(l_method) = server->request->get_method( ).Security (SSL) and authentication can be set in SICF service entry, tab "Logon data".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.