Giter Site home page Giter Site logo

todo_rest_api's Introduction

TODO tasks assignment and notification APi in Django Rest Framework

This is a simple api made for electura intern assignment phase submissions, It works using basic authentication and has two types of roles , being moderators and consumers,

Installation and setup

pip install -r requirements.txt

python manage.py runserver

Moderators can create a profile using

http://anubhavgupta.pythonanywhere.com/api/profiles/register_mod

example Json data to be sent

{"contact_number":"7889187788",
"user":{"username":"anubhav","password":7865151addasadsAS@Q#","email":"[email protected]"},
"tasks_completed":"25",
"efficiency":"25"
}

Consumers can create a profile using

http://anubhavgupta.pythonanywhere.com/api/profiles/register_consumer

{"contact_number":"7889187788",
"user":{"username":"consumer","password":"7865151addasadsAS@Q#","email":"[email protected]"},
"tasks_given":"25"
}

Now there are endpoints for viewing the users and details of consumers and moderators

now tasks are created by following

{
    "title":"Make an APi",
    "description":"try getting intern at ELECTURA",
    "deadline":"2021-05-01"
}

Tasks can be upadated by a moderator level perm account after authentication on

this set's the no of tasks completed by a mod and no his/her efficiency is updated as tasks on deadline vs total tasks commented in code for better readibility

mods can see tasks assigned at

clients can see tasks made at

Notes

there are some other end points in api for which you can refer the code , everything is written with apt comments and apt writing style following snakecase in most of the repo

Due to lack of time and college load , I left making .env file as all credentials are single use ~ it ain't an unknown error, I could have written more apt docs and ER diagram is missing due to same reason because we've got end sems starting this week on 5th may ๐Ÿ˜•

Overall I think This api fulfills most of the assignment requirements

Thanks

todo_rest_api's People

Contributors

gupta-anubhav12 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.