【文件属性】:
文件名称:training-cats-api
文件大小:25KB
文件格式:ZIP
更新时间:2021-04-13 04:41:19
Python
JSON API
RESTful API进行查看和添加。 链接到存储库的描述中。
专为训练而设计。
任务
第一项任务
该数据库具有具有以下架构的cats表:
Table "public.cats"
Column | Type
-----------------+-------------------
name | character varying
color | cat_color
tail_length | integer
whiskers_length | integer
它充满了一些数据,如下所示:
name | color | tail_length | whiskers_length
-------+---------------+-------------+-
【文件预览】:
training-cats-api-master
----.dockerignore(13B)
----runtime.txt(13B)
----manage.py(668B)
----Dockerfile(397B)
----cats_project()
--------settings.py(3KB)
--------urls.py(931B)
--------__init__.py(0B)
--------asgi.py(401B)
--------wsgi.py(401B)
----requirements.txt(456B)
----Pipfile.lock(19KB)
----sql_tasks()
--------task1.py(253B)
--------task2.py(623B)
----Procfile(32B)
----README.md(8KB)
----Pipfile(268B)
----api()
--------exceptions.py(165B)
--------functions.py(1KB)
--------apps.py(81B)
--------openapi.py(1013B)
--------urls.py(156B)
--------tests.py(3KB)
--------migrations()
--------admin.py(63B)
--------__init__.py(0B)
--------throttling.py(200B)
--------views.py(2KB)
--------serializers.py(1KB)
----docker-compose.yml(339B)
----.gitignore(13B)
----postgres()
--------Dockerfile(170B)
--------db_init.sql(1KB)