小编Bra*_*ley的帖子

OpenAPI:OpenAPI 文档的标准位置和名称

我正在查看 OAS,可以看到它在哪里列出了推荐的文件名,但openapi.json我有两个问题:

  1. 显然没有一个标准的放置位置,但是否存在人们似乎遵循的事实上的标准?就像假设最“正常”的地方使它可以访问/openapi.json

  2. 为什么这被排除在规范之外,为什么甚至只是推荐而不是必需的文档名称?这样做的部分目的不就是让它被发现吗?似乎重新定位 OpenAPI 文档可以通过给你一些你必须知道的东西来减少这一点。忽略它有什么好处吗?

rest swagger openapi

7
推荐指数
0
解决办法
2339
查看次数

“pip install -e”中如何使用“egg=”?

尝试测试可编辑安装,但我不确定如何解释结果。

我故意在这部分打错字egg=,但它仍然能够在没有我帮助的情况下找到鸡蛋:

root@6be8ee41b6c9:/# pip3 install -e git+https://gitlab.com/jame/clientapp.git      
Could not detect requirement name for 'git+https://gitlab.com/jame/clientapp.git', please specify one with #egg=your_package_name

root@6be8ee41b6c9:/# pip3 install -e git+https://gitlab.com/jame/clientapp.git#egg=
Could not detect requirement name for 'git+https://gitlab.com/jame/clientapp.git#egg=', please specify one with #egg=your_package_name

root@6be8ee41b6c9:/# pip3 install -e git+https://gitlab.com/jame/clientapp.git#egg=e
Obtaining e from git+https://gitlab.com/jame/clientapp.git#egg=e
  Cloning https://gitlab.com/jame/clientapp.git to /src/e
  Running setup.py (path:/src/e/setup.py) egg_info for package e produced metadata for project name clientapp. Fix your #egg=e fragments.
Installing collected packages: clientapp
  Found existing installation: ClientApp 0.7
    Can't uninstall 'ClientApp'. …
Run Code Online (Sandbox Code Playgroud)

python pip setuptools

6
推荐指数
1
解决办法
8661
查看次数

标签 统计

openapi ×1

pip ×1

python ×1

rest ×1

setuptools ×1

swagger ×1