Using Document Discovery service on a non-app engine service

165 views Asked by At

I have been playing around with the RPC package in Dart which makes it easy to add a Document Discovery service to Dart server.

After a bit of Googling I found out about the API Discovery Service https://developers.google.com/discovery/ which explained how to create client code for a given Discovery Document.

I then found Google Cloud Endpoint which looks like the server end of the a Document Discovery service. Is this true.

My real question is that I would like to use the Document Discovery service on a standard web site that is based on (say) Spring and running (say) an embedded Jetty server? Is this possible or would my application be intertwined with the App Engine Technology?

1

There are 1 answers

3
Günter Zöchbauer On

You application just needs to provide a Document Discovery service. It shouldn't be to hard to get the information what is expected out of the source of https://pub.dartlang.org/packages/discovery_api_client_generator which is the Dart client which generates Dart client code from discovery documents. As far as I know your service doesn't even need to provide the discovery documents. The discovery_api_client_generator package can also use discovery documents stored locally but the service is of course the preferred way if you want to make it available to everyone.

I would see it as equivalent to SOAP which also allows to create client code from meta-information provided as XML.

Also the shelf_rpc package doesn't need to run on AppEngine or Managed VM. You can run it locally or on any server you want.