localrest
Service icon

LocalRest

Stable version 1.0.1 (Compatible with OutSystems 11)
Uploaded
 on 23 Nov (14 hours ago)
 by 
0.0
 (0 ratings)
localrest

LocalRest

Documentation
1.0.1
  1. Select Authentication: Custom to add OnAuthentication to your exposed API and add the call to ValidateRequest:
  2. Add OnBeforeRequest to your consumer API, following the example in the demo API module, passing/setting the BaseURL and Headers:

  3. In the consumer API call, add a Header parameter called RestModule - this will appear to be unused, but it is passed to the OnBeforeRequest event handler:
  4. Then in the calls to this method, set this parameter to the module name that you wish to consume e.g. "LocalRestDemo_API", without any prefix or suffix (these are added automatically):
  5. If you get a 403 error, then it is probably due to http://localhost requests not being allowed, so set the Hostname property to your domain, e.g. yourname.outsystemscloud.com (without the https://)

1.0.0
    1. Select Authentication: Custom to add OnAuthentication to your exposed API and add the call to ValidateRequest:
    2. Add OnBeforeRequest to your consumer API, following the example in the demo API module, passing/setting the BaseURL and Headers:

    3. In the consumer API call, add a Header parameter called RestModule - this will appear to be unused, but it is passed to the OnBeforeRequest event handler:
    4. Then in the calls to this method, set this parameter to the module name that you wish to consume e.g. "LocalRestDemo_API", without any prefix or suffix (these are added automatically):
    5. If you get a 403 error, then it is probably due to http://localhost requests not being allowed, so set the Hostname property to your domain, e.g. yourname.outsystemscloud.com (without the https://)