How To Create a Json Rest Api with SAP Abap
Вставка
- Опубліковано 21 гру 2022
- In this video, learn,
How to create a json based rest api and publish it on SICF services
How to test rest api from browser
How to test rest api with Postman
How to apply MVC1 routing, handling multiple requests with a single rest api end point.
blogs.sap.com/2022/11/18/how-... - Наука та технологія
Thanks, man. Really liked the video
Excellent, it works nice.
Hi Beyhan, many thanks
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 Could you elaborate how to consume data from non-sap to sap table using rest api(json format)?
Hi Please make a video on jwt token authorization from sap to Google server
Thanks !
How to make it as https?
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.?