POST http://172.20.10.13:8000/custom_auth/login Content-Type: application/json
- {
- "username": "katherine", "password": "kkliu"
}
###
POST http://172.20.10.13:8000/custom_auth/signup Content-Type: application/json
- {
- "username": "kenneth", "password": "Doctors_Without_Borders", "email": "[email protected]", "is_admin": false, "is_charity": false, "wallet_addr": "0x123sssqdsjsjwiugedo", "text_desc": "", "subtitle": "", "img_link": ""
}
###
GET http://10.49.128.64:8000/custom_auth/test_token Content-Type: application/json Authorization: Token af086b07fcaddeff6fda17b41c0f1f3caec189d7
### GET http://172.20.10.2:8000/charity_info/get_causes?charity_name=GoFundMe Content-Type: application/json
### GET http://172.20.10.13:8000/charity_info/get_transactions Content-Type: application/json
- {
- "username": "katherine"
}
### POST http://172.20.10.2:8000/charity_info/post_transactions Content-Type: application/json
- {
- "username": "katherine", "charity_name": "Red_Cross", "amount": 1030.1
GET http://172.20.10.2:8000/charity_info/get_charity_total?charity_name=Salvation_Army Content-Type: application/json
### GET http://172.20.10.2:8000/charity_info/get_charity_transactions?charity_name=GoFundMe Content-Type: application/json
### POST http://172.20.10.2:8000/charity_info/add_cause Content-Type: application/json
- {
- "is_approved": true, "cause_name": "Vaccines for Guatemala", "charity_name": "Plan_International", "wallet_addr": "0x1ibpsau23ee233", "cause_desc": "Raising money to provide vaccines in guatemela"
}
### POST http://172.20.10.13:8000/charity_info/post_charity_transactions Content-Type: application/json
- {
- "charity_name": "GoFundMe", "cause_name": "Johnny's Fish Surgery", "amount": 0.1000
}
### GET http://172.20.10.13:8000/charity_info/get_all_charities Content-Type: application/json
### GET http://172.20.10.2:8000/charity_info/get_char_metadata Content-Type: application/json
- {
- "charity_name": "GoFundMe"
GET http://172.20.10.2:8000/charity_info/pull_cause?cause_id=6 Content-Type: application/json