Skip to content

A proof of concept of a monolithic architecture written in python and using flask and json

License

Notifications You must be signed in to change notification settings

LucasGab/Python_Monolithic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python_Monolithic

A proof of concept of a monolithic architecture written in python and using flask and json. Simulate a simple library system.

Exercise response of course in Digital Innovation One: Fundamentals of systems architecture ("Fundamentos de arquitetura de sistemas") - module: Architectural concepts in Internet applications ("Conceitos de arquitetura em aplicações para Internet"), class taught by Jefferson Stachelski. Exercises: https://github.com/jeffhsta/fundamentos_arquitetura

Has a simple automatic id system creation.

Architecture based Example (not equals, just simulates the interactions and comunication workflow):

monolithic

Instruction

  1. Clone the repository.
  2. Needs Python 3.* .
  3. Initiate a new virtualenv venv and install the requirements.txt.
  4. Run the main.py and use a tool like postman to make the requests.

End Points

GET / : Welcome Message
    body: Nothing

Users Module:

GET /users : Return All Users list
    body: Nothing
POST /users : Create User
    body:
    {
        "FirstName": "James",
        "LastName": "Bond",
        "Email":"[email protected]"
    }

PUT /users/<user_id> : Update User
    body:
    {
        "FirstName": "James",
        "LastName": "Bondeee",
        "Email":"[email protected]"
    }

GET /users/<user_id> : Get User Data
    body: Nothing
DELETE /users/<user_id> : Delete User,
    body: Nothing

Books Module:

GET /books : Return All Books list
    body: Nothing
POST /books : Create Book
    body:
    {
        "Name":"Scrum",
        "Authors":["Jeff Sutherland","J. J. Sutherland"],
        "Quantity": 10
    }

PUT /books/<book_id> : Update Book
    body:
    {
        "Name":"Scrum",
        "Authors":["Jeff Sutherland","J. J. Sutherland"],
        "Quantity": 5
    }

GET /books/<book_id> : Get Book Data
    body: Nothing
DELETE /books/<book_id> : Delete Book
    body: Nothing
POST /books/take/<book_id>/<user_id>: User takes a specific book
    body: Nothing
POST /books/vacate/<book_id>/<user_id>: User vacate a book
    body: Nothing

Reports Module:

GET reports/<user_id> : Get User Report
    body: Nothing

About

A proof of concept of a monolithic architecture written in python and using flask and json

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages