Question

I'm trying to use the Google Plugin to create a Web API as shown in this video:

Building web API's for Android seen from 26:50 until 39:40

I need a database for my Android app and try to use Google cloud endpoints, but am unable to do it following this video. I've been searching for more than a day on figuring out what I am doing wrong.

When I run the web application,

http://localhost:8888/_ah/admin/datastore?kind=message 

look alright and I can insert data using curl

for instance:

curl -H 'Content-Type: application/json' -d ' { "msMsg" : "my message!", "id" : 1 } ' http://localhost:8888/_ah/api/msgendpoint/v1/msg

But when I do

http://localhost:8888/_ah/api/explorer

I get this:

HTTP ERROR 404
Problem accessing /_ah/api/explorer. Reason:
     NOT_FOUND
Was it helpful?

Solution

You may need to deploy your app to get this URL to work. As an alternative, you can try navigating to a URL like this:

https://developers.google.com/apis-explorer/?base=http://localhost:8888/_ah/api

This URL will read your local Discovery document (from your browser) and display the APIs Explorer for those APIs.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top