Giter Site home page Giter Site logo

refbooks's Introduction

refbooks

The application provides API for dealing with reference books.

Endpoints:

Endpoint Method Description
/refbooks/ [?date=] GET Returns all available refbooks. If a date parameter is provided, only refbooks, which have versions with started date after the requested date, will be returned.
/refbooks/{id}/elements [?version={version}] GET Returns elements of the requested refbook in the latest version. If a version parameter provided, only elements of this version of the RefBook will be returned.
/refbooks/{id}/check_element?code={code}&value={value} [&version={version}] GET Checks if the element with provided parameters exists. If a version parameter is absent, the element will be checked in the latest version.
/docs GET API documentation with Swagger/OpenAPI 2.0 specifications.
/admin GET Admin interface.

Links

This project was built using these tools:

Tool Description
Django "A high-level Python web framework"
Django REST framework "A powerful and flexible toolkit for building Web APIs"
drf-yasg "Generate real Swagger/OpenAPI 2.0 specifications from a Django Rest Framework API."
poetry "Python dependency management and packaging made easy"

Installation

Copy a project

$ git clone [email protected]:Dddarknight/refbooks.git
$ cd refbooks

Set up environment variables

$ touch .env

You have to write into .env file SECRET_KEY for Django app. See .env.example.
To get SECRET_KEY for Django app:
$ python manage.py shell
>>> from django.core.management.utils import get_random_secret_key
>>> get_random_secret_key()

Then add new SECRET_KEY to .env file

Set up the environment

$ pip install poetry
$ make install

Dealing with migrations

$ make migrate

Launch

$ make run

License

GNU GPLv3

refbooks's People

Contributors

dddarknight avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.