1 Star 0 Fork 24

zsjss / django-restframework-test

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Coding challenge - API

We'd like to extend this Django REST Framework project (based on the one found here).

The API stores information about authors, categories and books.

We'd like to let our API users view library statistics, namely:

  1. Total number of books owned.
  2. Total cost of all books.
  3. Author with most books.
  4. Category with most books.

There are a few ways to approach this; feel free to choose one that seems appropriate, and please explain why you think it's best for us.

We've also heard of at least one bug in the codebase. Can you try to identify issues in the existing code, and document how you discovered and fixed the bugs?

Also:

  • Please treat all code as production level code.
  • Please don’t spend more than 4 hours on this. If time runs short, an explanation of what you would do given more time is fine.

Original readme.txt

> pip install -r requirements.txt
> python manage.py makemigrations
> python manage.py migrate
> python manage.py runserver
  -- server will be run on 127.0.0.1:8000
MIT License Copyright (c) 2018 Mohammad Javad Beheshtian Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

django restframework test 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/zsjss/django-restframework-test.git
git@gitee.com:zsjss/django-restframework-test.git
zsjss
django-restframework-test
django-restframework-test
master

搜索帮助