Hi Beyhan, This method works with Basic Auth Method, because the http connection made via SM59 access the source with only user id and password. What about if the Auth. type OAuth 2.0? Is there anyway to extract data? because you have first to generate a token and then the get method. I think, first call is Post Methods and then get the token and then Get methods and then the data comes in Json format.
Hi man, .I am try to use postman to get response with newly created rest api... It's working in browser but not working in postman (getting error this browser is unsupported ) response as 500 Please provide Your input
You may get cors error from REST Api and solution is empty implementation of HANDLE_CSRF_TOKEN method in ZREST_CL_HTTP_HANDLER class. If you have done that check it with postman. if you are not getting cors in postman but on browser, you need to change browser settings to ignore cors or you can use proxy in your web framework.
@@beyhanmeyrali6208 I've already left the implementation blank for the HANDLE_CSRF_TOKEN. In the broswer and insomnia/postman it works fine. In the JAVA server localhost application it gets CORS error
Excellent, it works nice.
Thanks, man. Really liked the video
Hi Beyhan, This method works with Basic Auth Method, because the http connection made via SM59 access the source with only user id and password. What about if the Auth. type OAuth 2.0? Is there anyway to extract data? because you have first to generate a token and then the get method. I think, first call is Post Methods and then get the token and then Get methods and then the data comes in Json format.
Hi Beyhan, many thanks
Is this process suitable for ECC6?
Hi man, .I am try to use postman to get response with newly created rest api... It's working in browser but not working in postman (getting error this browser is unsupported ) response as 500
Please provide Your input
Hi Could you elaborate how to consume data from non-sap to sap table using rest api(json format)?
I can help you with the same
Hi Beyhan, firstful thanks for the video. I get result but it is not what i want. i dont want '/' (slash) in the json . How do i fix this problem.
use ->set_cdata( string )
i'm getting CORS problem when calling the request from localhost server
You may get cors error from REST Api and solution is empty implementation of HANDLE_CSRF_TOKEN method in ZREST_CL_HTTP_HANDLER class. If you have done that check it with postman. if you are not getting cors in postman but on browser, you need to change browser settings to ignore cors or you can use proxy in your web framework.
@@beyhanmeyrali6208 I've already left the implementation blank for the HANDLE_CSRF_TOKEN. In the broswer and insomnia/postman it works fine. In the JAVA server localhost application it gets CORS error
Did you able to find a way to handle this cors issue.?
Hi Please make a video on jwt token authorization from sap to Google server
Thanks !
How to make it as https?