Skip to content

abhinav72610/Hncc_Management_Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

API FOR HNCC_MANAGEMENT WEB/APP

Steps to run it locally

  • clone it
  • make a virtual env
  • install the dependencies in the virtual env(pip install -r requirements.txt)
  • cd backend
  • run it using python manage.py runserver

Available values for endpoint

  • Registartion. Eg: 127.0.0.1:8000/api/user/create/

  • Verifying Email(A user can't login until being verified). Eg: 127.0.0.1:8000/api/user/email-verify/

  • Login. Eg: 127.0.0.1:8000/api/user/login/

  • Getting Token. Eg: 127.0.0.1:8000/api/token/

  • Refreshing Token. Eg: 127.0.0.1:8000/api/token/refresh

  • Logout. Eg: 127.0.0.1:8000/api/user/logout/blacklist/

  • Request Password Reset Email. Eg: 127.0.0.1:8000/api/user/request-reset-email/

  • Verify Password Reset Email. Eg: 127.0.0.1:8000/api/user/password-reset/<uidb64>/<token>/

  • Confirm Password Reset Eg: 127.0.0.1:8000/api/user/password-reset-complete

  • Getting All posts. Eg: 127.0.0.1:8000/api/posts

  • Getting An Individual posts. Eg: 127.0.0.1:8000/api/post/id=<id>

  • Getting All Users. Eg: 127.0.0.1:8000/api/user/

  • Getting Users by year. Eg: 127.0.0.1:8000/api/user?year=<year>

  • Getting Personal Profile. Eg: 127.0.0.1:8000/api/user/profile/

  • Getting Other's profile. Eg: 127.0.0.1:8000/api/user/profile/id=<id>/

  • Getting All Meets. (A Meet can be created only by the admin) Eg: 127.0.0.1:8000/api/meets/

  • Getting An Individual Meet. Eg: 127.0.0.1:8000/api/meets/meet/<int:pk>/

  • Getting All Events. (An Event can be created only by the admin) Eg: 127.0.0.1:8000/api/events/

  • Getting All Tasks. (A Task can be created only by the admin) Eg: 127.0.0.1:8000/api/tasks/

  • Getting Individual Task. Eg: 127.0.0.1:8000/api/tasks/task/<int:pk>/

  • Getting All Task of a specific user
    Eg: 127.0.0.1:8000/api/tasks?user_id=<int:pk>/

FOR GETTING OVERVIEW OF SCHEMA VISIT (127.0.0.1:8000/docs/)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages