Adding swagger UI to Endpoint project

231 views
Skip to first unread message

k...@mysquar.com

unread,
Mar 29, 2018, 11:01:45 PM3/29/18
to Google Cloud Endpoints
Hi all, 

I'm new with Google Endpoint project, I just had deploy success Endpoint getting start example on my App Engine Flexible.
Now I try to `Adding swagger UI to Endpoint project` but not success.
I following guide in link:
And I have create webapp to content all swagger-ui file (dist directory).
I try run on local with mvn jetty:run and access localhost:8080/docs the swagger ui working fine.
After that I deploy on my app engine and try to access https://<my project>.appspot.com/docs but  I got message 

{
 "code": 5,
 "message": "Method does not exist.",
 "details": [
  {
   "@type": "type.googleapis.com/google.rpc.DebugInfo",
   "stackEntries": [],
   "detail": "service_control"
  }
 ]
}


Can anybody help to fix that?
Thanks.

Wesley Wong

unread,
Apr 2, 2018, 12:35:24 PM4/2/18
to k...@mysquar.com, Google Cloud Endpoints
Hi,

In your OpenApi spec (most likely named openapi.yaml), did you add the /doc path? Once you do that, you should be able to access /docs on App Engine.

Thanks,
Wesley

--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/25e13ed8-e015-42b3-a935-3cffffc7dcb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages