文件名称:weatherApi
文件大小:164KB
文件格式:ZIP
更新时间:2024-03-27 22:42:11
Python
安装 git clone cd weatherApi docker-compose up --build 运行这些命令后,应用程序应以127.0.0.1:8000运行样本cURL请求curl --location --request GET'127.0.0.1:8000/get_temperature?location=istanbul' --header'授权:fdxf523dxfdfd2322d34xf3ddx423' 样品回复{“ city_name”:“伊斯坦布尔”,“ current_temperature”:9.15,“ today_min_temperature”:6.19,“ today_max_temperature”:8.6,“ this_week_min_temperature”:1.66,“ this_week_max_temperature”:15.96}}
【文件预览】:
weatherApi-master
----Dockerfile(519B)
----AppScaleDiagram.png(183KB)
----app()
--------app()
--------core()
--------manage.py(659B)
----requirements.txt(77B)
----Untitled Diagram.drawio(17KB)
----docker-compose.yml(750B)
----README.md(651B)
----swagger.json(1KB)
----calculate.py(258B)