Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for RESTful Services via APEX interface? #1

Open
GeorgDangl opened this issue May 22, 2015 · 1 comment
Open

Support for RESTful Services via APEX interface? #1

GeorgDangl opened this issue May 22, 2015 · 1 comment

Comments

@GeorgDangl
Copy link

I'd like to ask you if it is somehow possible to use Thoth Gateway to access RESTful Services that are created via the SQL Builder interface in APEX when no ORDS instance is running?
When trying that currently, it just returns a Thoth Gateway error stating that the URL is not found.

Is this a configuration issue on my side (I did not configure anything more but the database connection) or does it not work without ORDS?

@mortenbra
Copy link
Owner

Support for REST is on the roadmap for the Thoth Gateway version 2.0.

This will basically involve having the gateway read the REST definitions from the Apex (or ORDS) schema, and try to match the requested URL against any of the defined templates. If there is a match, the gateway needs to execute the specified SQL or PL/SQL code, and return the results as JSON (or whatever format is specified in the endpoint definition).

I've been thinking of using the (nonstandard) "InvocationProtocol" parameter in the DAD configuration for this, as this currently supports "CGI" for the normal gateway (OWA) operation, and "SOAP" for automatic web services. Having REST services served via a separate DAD means that REST urls cannot be served on the same base path as Apex apps, but I don't see a problem with this in practice.

Thoughts and comments appreciated.

@mortenbra mortenbra added this to the Thoth Gateway v2.0 milestone May 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants