Resource Requests
All Requests
GET
https://vabode.herokuapp.com/request/all
Requests posted by all users as array of objects
Headers
Authorization
string
Bearer Token
[
{
"details": {
"rr_id": "9e17f8a2-2eee-45dc-8453-ac2c4ac6365d",
"reqBy": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"imageURL": "https://google.com",
"volunteerCount": 1,
"details": "",
"title": "5Remdesivier",
"category": [
"Fundraising",
"COVID-19"
],
"amtRequired": 1500,
"isResolved": false,
"mapCoords": []
},
"reqBy": {
"password": "$2b$12$6gi7I7iWoXhLBORViBdwSuHra/8N600l4z96R8ImU3fg3Hnp7KNGG",
"mobileNumber": "9999999999",
"emailID": "sals@gmail.com",
"userType": 0,
"id": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"userName": "sals"
},
"timestamp": 1621606865883
},
{
"details": {
"rr_id": "3a0007b9-d46a-4f2f-a2ee-b18a1c38ceee",
"reqBy": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"imageURL": "https://google.com",
"volunteerCount": 1,
"details": "",
"title": "2Remdesivier",
"category": [
"Fundraising"
],
"amtRequired": 1500,
"isResolved": false,
"mapCoords": []
},
"reqBy": {
"password": "$2b$12$6gi7I7iWoXhLBORViBdwSuHra/8N600l4z96R8ImU3fg3Hnp7KNGG",
"mobileNumber": "9999999999",
"emailID": "sals@gmail.com",
"userType": 0,
"id": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"userName": "sals"
},
"timestamp": 1621606833284
},
{
"details": {
"rr_id": "da33c801-ec61-49dc-a54d-d6a168f61e2c",
"reqBy": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"imageURL": "https://google.com",
"volunteerCount": 1,
"details": "",
"title": "2Remdesivier",
"category": [
"Fundraising"
],
"amtRequired": [
1000,
3000
],
"isResolved": "",
"mapCoords": []
},
"reqBy": {
"password": "$2b$12$6gi7I7iWoXhLBORViBdwSuHra/8N600l4z96R8ImU3fg3Hnp7KNGG",
"mobileNumber": "9999999999",
"emailID": "sals@gmail.com",
"userType": 0,
"id": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"userName": "sals"
},
"timestamp": 1621605172916
},
{
"details": {
"rr_id": "2c10b3a5-6895-401f-8e90-1b3aaafc2f41",
"reqBy": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"imageURL": "https://google.com",
"volunteerCount": 1,
"details": "",
"category": [
"Fundraising"
],
"title": "Remdesivier",
"isResolved": "true",
"amtRequired": [
1000,
3000
],
"mapCoords": []
},
"reqBy": {
"password": "$2b$12$6gi7I7iWoXhLBORViBdwSuHra/8N600l4z96R8ImU3fg3Hnp7KNGG",
"mobileNumber": "9999999999",
"emailID": "sals@gmail.com",
"userType": 0,
"id": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"userName": "sals"
},
"timestamp": 1621367618249
},
{
"details": {
"rr_id": "1e9ea925-76cb-4549-926b-b0951a9be58f",
"reqBy": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"imageURL": "https://google.com",
"volunteerCount": 1,
"details": "A children's orphanage in Dahisar is requesting a resource of used/new textbooks for 2 kids studying in 9th standard. Urgent.",
"category": [
"Education"
],
"title": " Textbooks",
"amtRequired": [
500,
1000
],
"mapCoords": []
},
"reqBy": {
"password": "$2b$12$6gi7I7iWoXhLBORViBdwSuHra/8N600l4z96R8ImU3fg3Hnp7KNGG",
"mobileNumber": "9999999999",
"emailID": "sals@gmail.com",
"userType": 0,
"id": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"userName": "sals"
},
"timestamp": 1621366093232
}
]
Resolved Request Details by ID
GET
https://vabode.herokuapp.com/request/resolved/:id
Details of a single resolved request
Path Parameters
req_id
string
ID returned at the time of creation.
{
"data": {
"reqDetails": {
"rr_id": "2c10b3a5-6895-401f-8e90-1b3aaafc2f41",
"reqBy": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"imageURL": "https://google.com",
"volunteerCount": 1,
"details": "",
"category": [
"Fundraising"
],
"title": "Remdesivier",
"isResolved": "true",
"amtRequired": [
1000,
3000
],
"mapCoords": []
},
"requestedDetails": {
"password": "$2b$12$6gi7I7iWoXhLBORViBdwSuHra/8N600l4z96R8ImU3fg3Hnp7KNGG",
"mobileNumber": "9999999999",
"emailID": "sals@gmail.com",
"userType": 0,
"id": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"userName": "sals"
},
"resolvedDetails": [
{
"password": "$2b$12$6gi7I7iWoXhLBORViBdwSuHra/8N600l4z96R8ImU3fg3Hnp7KNGG",
"mobileNumber": "9999999999",
"emailID": "sals@gmail.com",
"userType": 0,
"id": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"userName": "sals"
},
{
"password": "$2b$12$DHtHPbUhRk1G/xqjoMrfvOeMUFwULMKKKBqb0q2UYHEPAbhP6mX6e",
"emailID": "rcmz@gmail.com",
"id": "1bf74675-79d0-4f5b-b4b4-d74ff0f6d765",
"userName": "rcmz"
},
{
"password": "$2b$12$DHtHPbUhRk1G/xqjoMrfvOeMUFwULMKKKBqb0q2UYHEPAbhP6mX6e",
"emailID": "rcmz@gmail.com",
"id": "1bf74675-79d0-4f5b-b4b4-d74ff0f6d765",
"userName": "rcmz"
},
{
"password": "$2b$12$DHtHPbUhRk1G/xqjoMrfvOeMUFwULMKKKBqb0q2UYHEPAbhP6mX6e",
"emailID": "rcmz@gmail.com",
"id": "1bf74675-79d0-4f5b-b4b4-d74ff0f6d765",
"userName": "rcmz"
},
{
"password": "$2b$12$DHtHPbUhRk1G/xqjoMrfvOeMUFwULMKKKBqb0q2UYHEPAbhP6mX6e",
"emailID": "rcmz@gmail.com",
"id": "1bf74675-79d0-4f5b-b4b4-d74ff0f6d765",
"userName": "rcmz"
}
]
}
}
All Requests posted by a User
GET
https://vabode.herokuapp.com/request/user
Requests posted by the user recent first.
Headers
Authorization
string
Request Body
userType
string
id
string
{
"data": [
{
"details": {
"rr_id": "9e17f8a2-2eee-45dc-8453-ac2c4ac6365d",
"reqBy": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"imageURL": "https://google.com",
"volunteerCount": 1,
"details": "",
"title": "5Remdesivier",
"category": [
"Fundraising",
"COVID-19"
],
"amtRequired": 1500,
"isResolved": false,
"mapCoords": []
},
"timestamp": 1621606865883
},
{
"details": {
"rr_id": "3a0007b9-d46a-4f2f-a2ee-b18a1c38ceee",
"reqBy": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"imageURL": "https://google.com",
"volunteerCount": 1,
"details": "",
"title": "2Remdesivier",
"category": [
"Fundraising"
],
"amtRequired": 1500,
"isResolved": false,
"mapCoords": []
},
"timestamp": 1621606833284
},
{
"details": {
"rr_id": "da33c801-ec61-49dc-a54d-d6a168f61e2c",
"reqBy": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"imageURL": "https://google.com",
"volunteerCount": 1,
"details": "",
"title": "2Remdesivier",
"category": [
"Fundraising"
],
"amtRequired": [
1000,
3000
],
"isResolved": "",
"mapCoords": []
},
"timestamp": 1621605172916
},
{
"details": {
"rr_id": "2c10b3a5-6895-401f-8e90-1b3aaafc2f41",
"reqBy": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"imageURL": "https://google.com",
"volunteerCount": 1,
"details": "",
"category": [
"Fundraising"
],
"title": "Remdesivier",
"isResolved": "true",
"amtRequired": [
1000,
3000
],
"mapCoords": []
},
"timestamp": 1621367618249
},
{
"details": {
"rr_id": "1e9ea925-76cb-4549-926b-b0951a9be58f",
"reqBy": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"imageURL": "https://google.com",
"volunteerCount": 1,
"details": "A children's orphanage in Dahisar is requesting a resource of used/new textbooks for 2 kids studying in 9th standard. Urgent.",
"category": [
"Education"
],
"title": " Textbooks",
"amtRequired": [
500,
1000
],
"mapCoords": []
},
"timestamp": 1621366093232
}
],
"userData": {
"password": "$2b$12$6gi7I7iWoXhLBORViBdwSuHra/8N600l4z96R8ImU3fg3Hnp7KNGG",
"mobileNumber": "9999999999",
"emailID": "sals@gmail.com",
"userType": 0,
"id": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"userName": "sals"
}
}
Create a Request
POST
https://vabode.herokuapp.com/request/create
Let a volunteer / ngo open a request. Returns request details.
Headers
Authorization
string
Request Body
userType
number
isResolved
boolean
Default: False
categories
array
eg. ["Education"]
reqBy
string
User ID
title
string
Request Title
details
string
Request details
amtRequired
array
[ min, max ]
volCount
number
mapCoords
array
[lat, lng]
imgURL
string
Image url path
{
"message": "Request added successfully!",
"details": {
"rr_id": "2c10b3a5-6895-401f-8e90-1b3aaafc2f41",
"reqBy": "1a8da239-c73f-47d6-98cf-1ce9a7c03e54",
"imageURL": "https://google.com",
"volunteerCount": 1,
"details": "",
"title": "Remdesivier",
"category": [
"Fundraising"
],
"amtRequired": [
1000,
3000
],
"mapCoords": [],
"timestamp": 1621367618249
}
}
Resolve a Request
PUT
https://vabode.herokuapp.com/request/resolve
Let Volunteer/NGO resolve a request.
Headers
Authorization
string
Resolving user's ID
Request Body
resBy
string
resolved by ID
mobile
string
userType
string
reqID
string
request ID
{
"message": "Request resolved successfully!",
"details": {
"resolved_at": 1621369430042
}
}
Edit Request Details
PUT
https://vabode.herokuapp.com/request/update
Let volunteer update request details.
Path Parameters
id
string
Headers
Authorization
string
Delete a Request
DELETE
https://vabode.herokuapp.com/request/delete
Let volunteer delete a request.
Path Parameters
reqID
string
Headers
Authorization
string
Request Body
userID
string
Last updated
Was this helpful?