简体   繁体   English

如何打开具有两个py文件的api资源管理器绑定?

[英]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.

相关问题 如何让Spyder直接从Windows资源管理器打开python脚本(.py文件) - How to get Spyder to open python scripts (.py files) directly from Windows Explorer 我有两个文件 LOGIN.py 和 LOGINCLICK.py。 如何通过单击按钮从 LOGINCLICK.py 打开 LOGIN.py 文件? - I have two files LOGIN.py and LOGINCLICK.py. How to open LOGIN.py file from LOGINCLICK.py by clicking a button? 如何使.py文件直接打开到空闲 - How to make .py files open directly into Idle 如何将.py文件与以`py`然后文件名打开CMD关联? - How to associate .py files to open CMD with `py` then the filename? 如何在 Windows 10 上打开和查看 Python PY 文件? - How do I open and view Python PY files on Windows 10? 如何在不同的行中制作 Vim open.py 文件? - How can I make Vim open .py files in different lines? 在 PyCharm 中,如何并排打开两个文件 - In PyCharm, how to open two files side by side 我有两个(.py)文件。 当第一个程序结束时,它将自行关闭,然后打开并运行第二个程序文件。 我该怎么做? - I have got two (.py) files. When the first program comes to end, it will close itself then open and run the second program file. How can ı do it? 如何在“ This PC”上打开Windows资源管理器? - How to open windows explorer at 'This PC'? 打开两个Excel文件 - Open two excel files
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM