This API allows a user to Create, Set and Track Monetary and Volunteer Goals. Tracked Goals will then be displayed in interactive Graphs.
- User
- Profile
- Fields
- User: FK
- annual_income: intField
- profile_pic:URLField
- Fields
- Goal
- Fields
- Created_At: DateField
- User: FK
- dgoaltitle: CharField
- dollars: IntFeld
- vgoaltitle: CharField
- hours: IntField
- interval: CharField (Drop Down)
- Fields
- Record
- Fields
- User: FK
- goal: FK
- amountdonated: IntField
- created_at: DateField
- hoursdonated: IntField
- description: CharField
- cause: charField (Drop Down)
- organization = CharField
- Fields
- Document
- Fields
- User: FK
- uploaded_at: DateTimeField
- upload: ImgField
- drecipt: FK
- vreceipt: FK
- Fields
- EmailReminder
- Fields
- user: FK
- Email:EmailField
- subscribe: Boolean
- Your_reminder: CharField
- Interval: (Drop Down)
- Fields
GET /api/Dgoals/
https://charitable-tracker.herokuapp.com/api/Dgoals/
This Can be Empty
[
{
"pk": 1,
"dgoaltitle": "Osama",
"dollars": 78,
"interval": "Week",
"created_at": "2022-05-04"
},
{
"pk": 2,
"dgoaltitle": "Osama",
"dollars": 78,
"interval": "Week",
"created_at": "2022-04-01"
}
]
POST /api/Dgoals/
https://charitable-tracker.herokuapp.com/api/Dgoals/
{
"dgoaltitle":"Osama",
"dollars":78,
"interval":"Week",
"created_at":"2022-04-1"
}
{
"pk": 2,
"dgoaltitle": "Osama",
"dollars": 78,
"interval": "Week",
"created_at": "2022-04-01"
}
PUT /api/Dgoal/<int:pk>/
https://charitable-tracker.herokuapp.com/api/Dgoal/<int:pk>/
{
"dgoaltitle": "Osama",
"dollars": 58,
"interval": "Week",
"created_at": "2022-05-04"
}
{
"pk": 1,
"dgoaltitle": "Osama",
"dollars": 58,
"interval": "Week",
"created_at": "2022-05-04"
}
DELETE /api/Dgoal/<int:pk>/
https://charitable-tracker.herokuapp.com/api/Dgoal/<int:pk>/
This Can be blank
No body returned for response
GET /api/Vgoals/
https://charitable-tracker.herokuapp.com/api/Vgoals/
This Can be blank
[
{
"pk": 1,
"vgoaltitle": "",
"hours": null,
"interval": "Week",
"created_at": "2022-05-04"
}
]
POST /api/Vgoals/
https://charitable-tracker.herokuapp.com/api/Vgoals/
{
"vgoaltitle": "Self Care!",
"hours": 5,
"interval": "Week",
"created_at": "2022-05-04"
}
{
"pk": 3,
"vgoaltitle": "Self Care!",
"hours": 5,
"interval": "Week",
"created_at": "2022-05-04"
}
PUT /api/Vgoal/<int:pk>/
https://charitable-tracker.herokuapp.com/api/Vgoal/<int:pk>/
{
"vgoaltitle": "Self Care!",
"hours": 8,
"interval": "Week",
"created_at": "2022-05-04"
}
{
"pk": 3,
"vgoaltitle": "Self Care!",
"hours": 8,
"interval": "Week",
"created_at": "2022-05-04"
}
DELETE /api/Vgoal/<int:pk>/
https://charitable-tracker.herokuapp.com/api/Vgoal/<int:pk>/
This Can be Empty
No body returned for response
GET /api/Drecords/
https://charitable-tracker.herokuapp.com/api/Drecords/
This Can be Empty
[
{
"pk": 1,
"amountdonated": 4,
"created_at": "2022-04-27",
"organization": "MSA",
"cause": "Religion",
"goal": "Osama"
}
]
POST /api/Drecords/
https://charitable-tracker.herokuapp.com/api/Drecords/
{
"amountdonated": 4,
"created_at": "2022-04-27",
"organization": "MSA",
"cause": "Religion"
}
{
"pk": 1,
"amountdonated": 4,
"created_at": "2022-04-27",
"organization": "MSA",
"cause": "Religion",
"goal": "Osama"
}
PUT /api/Drecord/<int:pk>/
https://charitable-tracker.herokuapp.com/api/Drecord/<int:pk>/
{
"amountdonated": 999,
"created_at": "2022-04-27",
"organization": "MSA",
"cause": "Religion",
"goal": "Osama"
}
{
"pk": 2,
"amountdonated": 999,
"created_at": "2022-04-27",
"organization": "MSA",
"cause": "Religion",
"goal": "Osama"
}
DELETE /api/Drecord/<int:pk>/
https://charitable-tracker.herokuapp.com/api/Drecord/<int:pk>/
This can be blank
No body returned for response
GET /View all volunteer records/
https://charitable-tracker.herokuapp.com/api/Vrecords/
This can be blank
{
"pk": 3,
"hoursdonated": 3,
"created_at": "2022-04-28",
"organization": "2",
"description": "Will this Work",
"cause": "Animals",
"goal": null
},
POST /api/Vrecords/
https://charitable-tracker.herokuapp.com/api/Vrecords/
{
"hoursdonated": 3,
"created_at": "2022-04-28",
"organization": "2",
"description": "Will this Work",
"cause": "Animals",
"goal": 3
}
{
"pk": 4,
"hoursdonated": 3,
"created_at": "2022-04-28",
"organization": "2",
"description": "Will this Work",
"cause": "Animals",
"goal": 3
}
GET /api/Vrecord/<int:pk>/
https://charitable-tracker.herokuapp.com/api/Vrecord/<int:pk>/
This can be blank
{
"pk": 3,
"hoursdonated": 3,
"created_at": "2022-04-28",
"organization": "2",
"description": "Will this Work",
"cause": "Animals",
"goal": null
}
PUT /api/Vrecord/<int:pk>/
https://charitable-tracker.herokuapp.com/api/Vrecord/<int:pk>/
{
"hoursdonated": 3,
"created_at": "2022-04-28",
"organization": "2",
"description": "Will this Work",
"cause": "Animals",
"goal": 3
}
{
"pk": 3,
"hoursdonated": 3,
"created_at": "2022-04-28",
"organization": "2",
"description": "Will this Work",
"cause": "Animals",
"goal": 3
}
DELETE /api/Vrecord/<int:pk>/
https://charitable-tracker.herokuapp.com/api/Vrecord/<int:pk>/
This can be blank
No body returned for response
POST /auth/login
https://charitable-tracker.herokuapp.com/auth/login
{
"username":"Osama",
"password":"osamamousa",
"password2":"osamamousa"
}
{
"key": "fb106dc266d3c98b20f1b969fb9a005435347ec1"
}
GET /api/annualincome/
https://charitable-tracker.herokuapp.com/api/annualincome/
None
{
"pk": 1,
"annual_income": 87000,
"profile_pic": ""
}
POST /api/annualincome/
https://charitable-tracker.herokuapp.com/api/annualincome/
{
"annual_income": 87000
}
{
"pk": 1,
"annual_income": 87000,
"profile_pic": ""
}
PATCH /api/annualincome/<int:pk>/
https://charitable-tracker.herokuapp.com/api/annualincome/<int:pk>/
{
"annual_income": 69
}
{
"pk": 1,
"annual_income": 69,
"profile_pic": ""
}
DELETE /api/annualincome/<int:pk>/
https://charitable-tracker.herokuapp.com/api/annualincome/<int:pk>/
None
None
GET /api/upload/
https://charitable-tracker.herokuapp.com/api/upload/
None
{
"upload": "https://charitabletracker.s3.amazonaws.com/reciepts/aaaa.jpg"
}
POST /api/upload/
https://charitable-tracker.herokuapp.com/api/upload/
Select Img (.jpg), Have the following headers
Content-Disposition, attachment;filename=
file name must match the uploaded img name
{
"upload": "https://charitabletracker.s3.amazonaws.com/reciepts/aaaa.jpg"
}
PATCH /api/upload/<int:pk>/
https://charitable-tracker.herokuapp.com/api/upload/<int:pk>/
Select Img (.jpg), Have the following headers
Content-Disposition, attachment;filename=
file name must match the uploaded img name
{
"upload": "https://charitabletracker.s3.amazonaws.com/reciepts/aaaa.jpg"
}
POST /api/upload/<int:pk>/
https://charitable-tracker.herokuapp.com/api/upload/<int:pk>/
Select Img (.jpg), Have the following headers
Content-Disposition, attachment;filename=
file name must match the uploaded img name
deleted
GET /api/reminders/
https://charitable-tracker.herokuapp.com/api/reminders/
This Can be Empty
{
"email": "[email protected]",
"subscribe": true,
"interval": "BiWeekly",
"your_reminder": "Hey u are awsome"
}
POST /api/reminders/
https://charitable-tracker.herokuapp.com/api/reminders/
This Can be Empty
{
"email": "[email protected]",
"subscribe": true,
"interval": "BiWeekly",
"your_reminder": "Hey u are awsome"
}
PATCH /api/reminders/<int:pk>
https://charitable-tracker.herokuapp.com/api/reminders/api/reminders/<int:pk>
This Can be Empty
{
"email": "[email protected]",
"subscribe": true,
"interval": "BiWeekly",
"your_reminder": "Hey u are awsome"
}
DELETE /api/reminders/<int:pk>
https://charitable-tracker.herokuapp.com/api/reminders//api/reminders/<int:pk
This Can be Empty
{
"email": "[email protected]",
"subscribe": true,
"interval": "BiWeekly",
"your_reminder": "Hey u are awsome"
}
POST /auth/registration/
https://charitable-tracker.herokuapp.com/auth/registration/
{
"username":"insomniatest",
"password1":"o76218333",
"password2":"o76218333"
}
{
"key": "45973839a6219a439d9ae6608904b6c35abee88e"
}
GET /api/causetime/
https://charitable-tracker.herokuapp.com/api/causetime/
This Can Be blank
needs updated
GET /api/causedonation/
https://charitable-tracker.herokuapp.com/api/causedonation/
This Can Be blank
[
{
"amountdonated": 3,
"cause": "Women's Rights"
},
{
"amountdonated": 3,
"cause": "Women's Rights"
}
]
GET /api/causedonation/
https://charitable-tracker.herokuapp.com/api/causedonation/
This Can Be blank
needs updated
GET api/organizationtime/
https://charitable-tracker.herokuapp.com/api/organizationtime/
This Can Be blank
needs updated
GET api/organizationdonation/
https://charitable-tracker.herokuapp.com/api/organizationdonation/
This Can Be blank
[
{
"amountdonated": 3,
"organization": "Testing Insomnia"
},
{
"amountdonated": 3,
"organization": "Testing Insomnia"
}
]