Cloud endpoints for Google App Engine, no API

I learned about GAE endpoints yesterday. From now on, I have been trying to create an API for my current web application. I am using JPA2.0, I selected one of my feature classes by clicking on it and then "generated the final google class". So now I have another class for this entity with @API annotations etc.

But the problem is that after deploying the app, when I go to: https://developers.google.com/apis-explorer/?base=https://myAppId.appspot.com/_ah/api#p/

the services tab is empty. The same when I check it locally (image below) enter image description here

+3


source to share


5 answers


You need to create a cloud endpoint library (in Eclipse, right click on Project, in Google).



+2


source


I had a similar problem and it was caused by a missing public attribute in the methods.

@Api
public class MyApi {
   @ApiMethod
   void myMethod() { }
}

      

caused the fact that I didn't see any methods. Added



@Api
public class MyApi {
   @ApiMethod
   public void myMethod() { }
}

      

Methods

became visible.

+1


source


1.Appengine logging https://appengine.google.com/

2. Click the [Version] link in the main category

3. Select your version and the [Set as default] button

4.You can access the api explorer https://myAppId.appspot.com/_ah/api/explorer

Regards.

+1


source


I was able to solve the above problem. So I had an existing web application and thought I could just add annotations to it and provide an API for it after deployment. But I figured out that I need to start from scratch by building an Android app and then create background code for that app and add your classes there. Now it works. Thank.

0


source


Points to remember before working on endpoints:

  • You need to create a client endpoint library before running your project. (In Eclipse: Project -> Right Click -> Google -> Create Endpoint Library for Clouds)

  • Check if you are using the latest Google plugin or not. Since the files needed by the endpoints will be executed from the plugin. If you can't create endpoint library. the problem is with the plugin. Try to update it.

  • Endpoints will only work by default. Make sure you make your default version.

  • finally try downloading http://myApp.appspot.com/_ah/api/explorer . Everything should be fine now.

0


source







All Articles