Skip to content

soyungenio/django-library-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django library api

This project contains two databases that are replicated. The first database is the master, and the second is the slave database. Writing data occurs through the master, and reading through the slave. Replication reduces the reading load and increases the reliability of the system, it can be upgraded by increasing the amount of slave and this will further increase reliability and performance.

How to start this project?

To start Django server you need run this command

$ docker-compose up

After the first start, a migrating occurs that starts the data generator.

Project URLs

  • Get specific reader by the reader id, readers/:id/:
    • GET http://localhost:8000/api/readers/2

      {
        "id": 2,
        "first_name": "Brian",
        "last_name": "Wilson",
        "books": [
          {
            "id": 3,
            "title": "Persevering non-volatile installation",
            "author": "Cristina Branch"
          },
          {
            "id": 4,
            "title": "Switchable 4thgeneration framework",
            "author": "Ricardo Nguyen"
          }
        ]
      }
      
  • Get CSV file contaning all entities of this project:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published