REST API码头工人

时间:2021-02-18 14:04:00
【文件属性】:
文件名称:REST API码头工人
文件大小:5KB
文件格式:ZIP
更新时间:2021-02-18 14:04:00
HTML #使用Docker的RESTful Web服务 创建了一个RESTful Web服务,该服务使用四个获取路由以JSON格式显示Employees的数据: /雇员 /雇员/ \ /雇员/ /项目 /雇员/ /项目/ 运行RESTful Web服务的步骤: 在单个文件夹中使用app.py和JSON文件创建项目。 templates文件夹由index.html和index_project.html文件组成,该文件在网页上显示json结果 通过运行以下命令来创建Docker映像:-“ docker build -t employee-image:latest”。 您可以检查使用“ docker images”创建的图像。 您将在列表下找到图片employees-image。 使用
【文件预览】:
REST-api-docker-master
----app.py(1KB)
----Employees.JSON(2KB)
----templates()
--------index.html(2KB)
--------index_project.html(2KB)
----Dockerfile(227B)
----requirements.txt(12B)
----README.md(1KB)
----.gitattributes(66B)

网友评论