[英]how to open api explorer bind with two py files?
Here is my app.yaml 这是我的app.yaml
# Endpoints handler
- url: /customer/.*
script: DimCustomerManagement.APPLICATION
- url: /user.*
script: DimUserManagement.APPLICATION
how to open api explorer to check apis are working or not locally ? 如何打开api资源管理器以检查api是否在本地正常工作?
Try: 尝试:
https://apis-explorer.appspot.com/apis-explorer/?base=https://appname.appspot.com/_ah/api
If you want to test it on localhost just change the URL to 如果要在localhost上进行测试,只需将URL更改为
https://apis-explorer.appspot.com/apis-explorer/?base=http://localhost:8080/_ah/api
For this explorer will be the same. 对于这个资源管理器将是相同的。 But there will be two services
但是会有两个服务
create a separate file Suppose 'Services.py' 创建一个单独的文件假设“ Services.py”
import endpoints
from DimCustomerManagement import name_of_endpoint_classs1
from DimUserManagement import name_of_endpoint_classs2
application = endpoints.api_server([name_of_endpoint_classs1,name_of_endpoint_classs2])
change app.yaml 更改app.yaml
# Endpoints handler
- url: /.*
script: TechHealServices.application
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.