link-shortener:基于API的URL缩短器,用于生成和重定向链接

时间:2021-04-09 12:15:25
【文件属性】:
文件名称:link-shortener:基于API的URL缩短器,用于生成和重定向链接
文件大小:39KB
文件格式:ZIP
更新时间:2021-04-09 12:15:25
Python 所罗门链接缩短剂 基于API的URL缩短器,用于生成和重定向链接 安装 需要Python 3.9+。 用于依赖性管理。 poetry install 跑步 发展 poetry run python application.py 生产 TBD API文档 标记为已认证的路由必须提供一个access_token 短网址重定向 GET / 将短网址转换为完整网址,然后返回301重定向。 查询参数被转发。 回应 301 :成功重定向 404 :找不到短链接 获取短网址 GET /api/links// 获取有关短网址的信息。 回应 200 :成功 "url": { "id": , "created": , "short": , "
【文件预览】:
link-shortener-main
----application.py(1KB)
----poetry.lock(53KB)
----pyproject.toml(628B)
----.pylintrc(17KB)
----cli_setup.py(1KB)
----shortener.ini(215B)
----fabfile.py(2KB)
----shortener()
--------models.py(912B)
--------logger.py(1018B)
--------__init__.py(977B)
--------controller.py(2KB)
--------config.py(2KB)
----tests()
--------test_shortener.py(3KB)
--------conftest.py(1KB)
--------__init__.py(0B)
----.env.dist(154B)
----wsgi.py(144B)
----migrations()
--------versions()
--------alembic.ini(839B)
--------README(38B)
--------env.py(3KB)
--------script.py.mako(494B)
----rsync_exclude.txt(59B)
----dev.sh(581B)
----.gitignore(143B)
----.dockerignore(328B)
----README.md(2KB)

网友评论