google app engine - Adding new Endpoint class in Android Studio -


I'm using #GoogleCloudEndpoint on #AndroidStudio using this post.

I can make modules and play around it (API names, customers, etc. change), but when I tried to add another endpoint (as a class in the same module) , Then I can not see those APIs reflected on / _ah / api / explorer.

I do not see any error messages in the building, but it is just that the Explorer only shows an API.

Thank you.

You will need to make sure that the web.xml file has an entry

For example, look at this code in web.xml which is a sample from my code:

  & lt; Servlet & gt; & Lt; Servlet-name & gt; SystemServiceServlet & lt; / Servlet-name & gt; & Lt; Servlet category & gt; Com.google.api.server.spi.SystemServiceServlet & lt; / Servlet category & gt; & Lt; Init-param & gt; & Lt; Ultimate Name & gt; Services & lt; / Lastname & gt; & Lt; Ultimate Price & gt; Com.mindstorm.stocktickerapi.QuoteEndpoint & lt; / Super-valued & gt; & Lt; / Init-param & gt; & Lt; / Servlet & gt; & Lt; Servlet-mapping & gt; & Lt; Servlet-name & gt; SystemServiceServlet & lt; / Servlet-name & gt; & Lt; URL pattern & gt; / _h / spi / * & lt; / URL pattern & gt; & Lt; / Servlet-mapping & gt;  

Here I have a closing point class that is & lt; Param-value & gt; element exists in now, if you have another endpoint class, then you should put it here. Just make sure you separate your classes by a comma separator eg. Com.myclass.endpoint1, com.myclass.endpoint2 and so on.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -