V
v205
Guest
I have created a simple REST API with PAS for OE 11.7 using the PDSOE and I have successfully tested the POST method. The underlying CLASS exposes two methods - one for the POST and another for GET. The GET method is returning a simple TEMP-TABLE as an OUTPUT PARAMETER that is correctly mapped using the tool provided for mapping the service. I cannot figure out why the GET method is returning HTTP 405 despite checking all my annotations and RPC mappings for the parameters are correct. I am using POSTMAN to test. I also noticed that in the response headers there is this string: Allow →POST,OPTIONS I am not sure why the only two methods are POST and OPTIONS here. Is there a way to set this on the Server-side, where all the HTTP methods are allowed? I am using Annotations for mapping the REST RPC.
Continue reading...
Continue reading...