{"id":27273473,"url":"https://github.com/sd2001/rethink-backend","last_synced_at":"2026-04-30T10:06:58.009Z","repository":{"id":77047899,"uuid":"345512104","full_name":"sd2001/Rethink-Backend","owner":"sd2001","description":"Clinic Management Backend","archived":false,"fork":false,"pushed_at":"2021-03-14T05:44:58.000Z","size":62,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T14:50:00.583Z","etag":null,"topics":["django","django-rest-framework","python3","sqlite3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sd2001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-03-08T02:52:22.000Z","updated_at":"2021-04-05T12:58:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"ae2c202f-59fb-4329-a681-14f30caf3ab3","html_url":"https://github.com/sd2001/Rethink-Backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sd2001/Rethink-Backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sd2001%2FRethink-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sd2001%2FRethink-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sd2001%2FRethink-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sd2001%2FRethink-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sd2001","download_url":"https://codeload.github.com/sd2001/Rethink-Backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sd2001%2FRethink-Backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32460864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","django-rest-framework","python3","sqlite3"],"created_at":"2025-04-11T14:33:21.600Z","updated_at":"2026-04-30T10:06:58.003Z","avatar_url":"https://github.com/sd2001.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003eRethink Backend Tasks:\u003c/h1\u003e\n\n\u003ch3\u003eMaking Backend for Clinic Management System:\u003c/h3\u003e\n\n**Task(completed):**\nCompleted making all the proper endpoints for Admin, Doctors and Visitors\nAdded Error handling\n\n**Tasks(Remaining):**\nCouldn’t make the swagger interface for the endpoints as swagger doesn’t come in-built with django. Django rest swagger can be used, but it's obsolete with its support ended for versions \u003e django 3.0.5, while django is currently 3.1.6. But I have used API Viewsets, we can get a near-swagger like output in the browser\n\n**Kindly ignore the dummy names used in the API Schemas.**\n\n**Kindly ignore the word “PRACTITIONER” mentioned as “PRACTIONER” several times.**\n\n\n\n\u003ch2\u003eHow to Start/Setup the Project:\u003c/h2\u003e\n\n\u003ch4\u003eIn the terminal:\u003c/h4\u003e\n\n- Fork The Repo\n ```\n git clone https://github.com/sd2001/Rethink-Backend.git\n ```\n ```\n cd Rethink-Backend\n ```\n\n```\n pip install virtualenv\n ```\n ``` \n virtualenv env\n ```\n ``` \n source env/bin/activate\n ```\n ```\n pip install -r requirements.txt\n ```\n ```\n  python manage.py createsuperuser\n   (To access the django-admin)\n ```  \n ```\n python manage.py makemigrations\n ```\n ```\n python manage.py migrate\n ```\n ```\n python manage.py runserver\n```\n\nIn the .env file, kindly add desired email and password(with smtp enabled to use the mail feature)\n\n\n\n\n\n\n\n\n**ADMIN:**\n\n*URL : 127.0.0.1:8000/manage/admin*\n\n      -    Get list of Practitioners(get)\n      -    Add a Practitioner(post)\n        \nSchema: \n{\n        \"name\": \"Dr 1\",\n        \"picture_link\": \"aws.s3.123456789\",\n        \"specialization\": \"Heart\",\n        \"phone_number\": 9836088355,\n        \"available\": false,\n        \"PAN_number\": \"121xyz\",\n        \"Account_number\": \"334xyz\",\n        \"IFSC_number\": \"456xyz\"\n    }\n\n\n\n\n\n\n\n\n\n\n**PRACTITIONERS:**\n\n- Profile Endpoints for Doctors:\n\n*URL:  127.0.0.1:8000/doctors/profile/\u003cuuid:pk\u003e*\n\n     -  Get a particular profile(post)\n     -  Update a particular profile(put - update the values to be changed here)\n     \n   {\n    \"id\": \"367884a0-2bc3-48dd-8950-4c436a565e15\",\n    \"name\": \"Dr 1\",\n    \"picture_link\": \"n/a\",\n    \"specialization\": \"Heart\",\n    \"phone_number\": 9836088355,\n    \"available\": false,\n     \"PAN_number\": \"121xyz\",\n     \"Account_number\": \"334xyz\",\n      \"IFSC_number\": \"456xyz\"\n   }\n\n\n\n\n\n\n\n\n\n- Availability Endpoints for Doctors:\n\n*URL: 127.0.0.1:8000/doctors/avail/\u003cuuid:pk\u003e*\n\n     -     Get particular doctor’s time(get)\n     -     Update time(put - update the values to be changed here)\n      \n{\n    \"id\": \"98fded74-9775-4348-9505-7a9a1a60634e\",\n    \"name\": \"Dr2\",\n    \"start1\": \"10:00:00\",\n    \"end1\": \"12:00:00\",\n    \"maxtime\": 25\n}\n\n\n\n*URL: 127.0.0.1:8000/doctors/avail*\n\n    -    Get all doctors available times(get)\n    -    Post doctors available time(slots get created via this)\n    -    \n   {\n        \"id\": \"367884a0-2bc3-48dd-8950-4c436a565e15\",\n        \"name\": \"Dr1\",\n        \"start1\": \"13:00:00\",\n        \"end1\": \"15:00:00\",\n        \"maxtime\": 20\n    }\n\n\n\n- Slot Checking for booking:\n\n*URL: http://127.0.0.1:8000/doctors/slots*\n\n    -   Get all the slots as selected by the doctors(get)\n\n\n- Check Booked Slots:(FORGOT TO SHOW THIS IN VIDEO)\n*URL: http://127.0.0.1:8000/doctors/booking/\u003cuuid:pk\u003e*\n\n    -  Get the bookings for a particular doctor(get)\n\n\n\n\n\n\n**VISITORS:**\n\n- Registering Patients:\n\n*URL: http://127.0.0.1:8000/patients/register*\n\n     -  Getting the list of all visitors(get)\n     -  Add a visitor(post)\n     \n{\n        \"name\": \"Patient1\",\n        \"email\": \"im.swarnabha2001@gmail.com\",\n        \"address\": \"96/2, Bangur Avenue, 3rd floor\",\n        \"postal\": \"700055\",\n        \"city\": \"Kolkata\",\n        \"state\": \"West Bengal\",\n        \"country\": \"India\",\n        \"nationality\": \"Indian\",\n        \"dob\": \"21/12/2001\",\n        \"verify\": false\n    }\n\n\n- Getting Details of a patient:\n\n*URL: http://127.0.0.1:8000/patients/register/\u003cuuid:pk\u003e*\n\n    -  Get the patient details(get)\n\n\n\n\n- Verifying the patient email using OTP\n\n*URL: http://127.0.0.1:8000/patients/verify*\n\n    -   Get the otp(s) for all the patient from database(get)\n    -   Post the otp to verify user = True(post)[this set the user.verify = True]\n    \n{\n    \"id\": \"5326ce22-b027-4289-8457-569518c14944\",\n    \"otp\": \"eb130\"\n}\n\n*URL: http://127.0.0.1:8000/patients/verify/\u003cuuid:pk\u003e*\n\n     -  Get verification details for a single patient\n\n\n- Booking Slots:\n\n*URL: http://127.0.0.1:8000/patients/bookslot*\n\n     -   Get the booked slots(get)\n     -   Post booking slots(post - booking as per empty slots(false))\n   \n{\n        \"id\": \"461b2709-122e-4465-bc66-c1a56b0186dc\",\n        \"patient_id\": \"324553d7-af74-4c6f-bb71-7c67d8e3c8f3\",\n        \"name\": \"Voldemort\",\n        \"email\": \"im.swarnabha2001@gmail.com\",\n        \"dr_id\": \"a4d9a89e-6add-4294-b6be-e737e2c6d5a0\",\n        \"slot\": \"15:00:00\",\n        \"mode\": \"offline\",\n        \"payment\": false\n    }\n\n- Payment for Booking:\n\n*URL: http://127.0.0.1:8000/patients/bookverify*\n\n    -  Get all the payment info for the users who’ve paid(get)\n    -  Post the payment schema to make payment = true(post)\n    \n{\n        \"id\": \"1a14a38c-f5e8-4241-ad63-3a5d7fe6c4ae\",\n        \"patient_id\": \"324553d7-af74-4c6f-bb71-7c67d8e3c8f3\",\n        \"name\": \"Voldemort\",\n        \"dr_id\": \"a4d9a89e-6add-4294-b6be-e737e2c6d5a0\",\n        \"amount\" : 500\n    }\n\n \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsd2001%2Frethink-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsd2001%2Frethink-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsd2001%2Frethink-backend/lists"}