Skip to content

zihad868/ProjectManagementServer

Repository files navigation

Django Project Management API

Swaggwer API Documentation

Clone and Run Local Manually

  • pip install virtualenv
  • virtualenv env ---> ( For Linux )
  • source ./env/bin/activate ---> ( For Linux )
  • pip install django
  • pip install djangorestframework
  • pip install djangorestframework-simplejwt
  • pip install drf-yasg
  • git clone https://github.com/zihad868/ProjectManagementServer.git
  • cd ProjectManagementServer
  • python manage.py makemigrations
  • python manage.py migrate
  • python manage.py createsuperuser
  • python manage.py runserver

OR Git Clone & go to main project directory run

API Documentation

Authentication

  • POST /api/users/register/

    • Body: {"username": "string", "email": "your email" "password": "string", "first_name": "string", "last_name": "string"}
  • POST /api/users/login/

    • Get Refresh & Access Token
    • Body: {"email": "string", "password": "string"}
  • GET /api/users/{user_id}

    • Response: Get User Details
  • PATCH /api/users/{user id}/update/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Body: {"email": "string"}
  • PUT /api/users/{user id}/update/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Body: {"username": "string", "email": "your email" "password": "string", "first_name": "string", "last_name": "string"}
  • DELETE /api/users/{user id}/delete/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Response: User deleted successfully.

Projects

  • GET /api/projects/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Response: Project Details
  • POST /api/projects/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Body: {"name": "string", "description": "string"}
  • GET /api/projects/{priject id}/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Response: Specific Project Details
  • PATCH /api/projects/{priject id}/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Body: {"description": "string"}
  • PUT /api/projects/{priject id}/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Body: {"name": "string", "description": "string"}
  • DELETE /api/projects/{priject id}/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Response: Project deleted successfully.

Task

  • GET /api/projects/{project_id}/tasks/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Response: Project Details
  • POST /api/projects/{project id}/tasks/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Body: {"title": "string", "description": "string"}
  • GET /api/tasks/{task id}/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Response: Specific task details
  • PATCH /api/tasks/{task id}/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Body: {"title": "string"}
  • PUT /api/tasks/{task id}/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Body: {"title": "string", "description": "string"}
  • DELETE /api/tasks/{task id}/`

    • Header: {Authorization: Bearer {Your Login Token}}
    • Response: Task deleted successfully.

Comments

  • GET /api/tasks/{task id}/comments/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Response: Get comments specific task
  • POST /api/tasks/{task id}/comments/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Body: {"content": "string"}
  • GET /api/comments/{comment id}/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Response: Specific comment details
  • PATCH /api/comments/{comment id}/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Body: {"content": "string"}
  • PUT /api/comments/{comment id}/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Body: {"content": "string"}
  • DELETE /api/comments/{comment id}/

    • Header: {Authorization: Bearer {Your Login Token}}
    • Response: Task deleted successfully.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages