Download OpenAPI specification:Download
API documentation for RescueLink System, an emergency resource allocation platform. The RescueLink API facilitates secure access to endpoints for user management, inventory control, delivery tracking, and notifications.
Signs up a user using Google SSO via Okta and stores the role (victim, volunteer, coordinator).
| role required | string Enum: "victim" "volunteer" "coordinator" Role of the user |
{- "role": "victim"
}| requestId | string |
| reqCategory required | string |
| noOfMembers required | integer |
| landmark required | string |
| address required | string |
| details required | string |
{- "requestId": "string",
- "reqCategory": "string",
- "noOfMembers": 0,
- "landmark": "string",
- "address": "string",
- "details": "string"
}{- "requestId": "string",
- "reqCategory": "string",
- "noOfMembers": 0,
- "landmark": "string",
- "address": "string",
- "details": "string"
}Fetches all resources available in the inventory.
{- "resources": [
- {
- "id": "res-12345",
- "superClassification": "Medical Support",
- "subClassification": "Physical Ailments",
- "items": [
- "Bandages"
], - "quantity": 100,
- "availability": true
}
]
}Creates a new resource in the inventory.
| id required | string Unique identifier for the resource. |
| superClassification required | string Enum: "Basic Amenities" "Medical Support" "Sanitation Support" "Survival Amenities" "Rescue Support" "Evacuation Support" "Power and Communication Support" The main category of the resource. |
| subClassification required | string The sub-category of the resource. |
| items required | Array of strings List of items included in the resource. |
| quantity required | integer The total quantity of the resource available. |
| availability required | boolean Indicates if the resource is currently available. |
{- "id": "res-12345",
- "superClassification": "Medical Support",
- "subClassification": "Physical Ailments",
- "items": [
- "Bandages"
], - "quantity": 100,
- "availability": true
}Updates the details of an existing resource.
| resourceId required | string Unique ID of the resource |
| id required | string Unique identifier for the resource. |
| superClassification required | string Enum: "Basic Amenities" "Medical Support" "Sanitation Support" "Survival Amenities" "Rescue Support" "Evacuation Support" "Power and Communication Support" The main category of the resource. |
| subClassification required | string The sub-category of the resource. |
| items required | Array of strings List of items included in the resource. |
| quantity required | integer The total quantity of the resource available. |
| availability required | boolean Indicates if the resource is currently available. |
{- "id": "res-12345",
- "superClassification": "Medical Support",
- "subClassification": "Physical Ailments",
- "items": [
- "Bandages"
], - "quantity": 100,
- "availability": true
}Retrieve a list of all allocation records.
{- "allocations": [
- {
- "allocation_id": "382c58cf-1df3-4a3e-982d-9827484a770a",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "requester_id": "5fe88a55-c92f-4e12-bd25-87bf15036ce9",
- "provider_id": "fe3d49af-4061-436b-ae60-f7044f252a44",
- "status": "Pending",
- "request_date": "2019-08-24T14:15:22Z",
- "delivery_date": "2019-08-24T14:15:22Z",
- "priority": 0,
- "contact_info": "string"
}
]
}Add a new allocation to the system.
| allocation_id required | string <uuid> Unique identifier for the allocation. |
| resource_id required | string <uuid> Unique identifier for the resource. |
| requester_id required | string <uuid> Unique identifier for the survivor requesting the resource. |
| provider_id required | string <uuid> Unique identifier for the volunteer providing the resource. |
| status required | string Enum: "Pending" "Fulfilled" "In Progress" Current status of the allocation. |
| request_date required | string <date-time> Timestamp when the resource was requested. |
| delivery_date | string <date-time> Timestamp when the resource is expected to be delivered or was delivered. |
| priority required | integer Priority of the allocation, based on factors such as need and last fulfillment time. |
| contact_info required | string Encrypted contact information of the requester. |
{- "allocation_id": "382c58cf-1df3-4a3e-982d-9827484a770a",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "requester_id": "5fe88a55-c92f-4e12-bd25-87bf15036ce9",
- "provider_id": "fe3d49af-4061-436b-ae60-f7044f252a44",
- "status": "Pending",
- "request_date": "2019-08-24T14:15:22Z",
- "delivery_date": "2019-08-24T14:15:22Z",
- "priority": 0,
- "contact_info": "string"
}Update an allocation's details by ID.
| allocation_id required | string <uuid> Unique ID of the allocation |
| allocation_id required | string <uuid> Unique identifier for the allocation. |
| resource_id required | string <uuid> Unique identifier for the resource. |
| requester_id required | string <uuid> Unique identifier for the survivor requesting the resource. |
| provider_id required | string <uuid> Unique identifier for the volunteer providing the resource. |
| status required | string Enum: "Pending" "Fulfilled" "In Progress" Current status of the allocation. |
| request_date required | string <date-time> Timestamp when the resource was requested. |
| delivery_date | string <date-time> Timestamp when the resource is expected to be delivered or was delivered. |
| priority required | integer Priority of the allocation, based on factors such as need and last fulfillment time. |
| contact_info required | string Encrypted contact information of the requester. |
{- "allocation_id": "382c58cf-1df3-4a3e-982d-9827484a770a",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "requester_id": "5fe88a55-c92f-4e12-bd25-87bf15036ce9",
- "provider_id": "fe3d49af-4061-436b-ae60-f7044f252a44",
- "status": "Pending",
- "request_date": "2019-08-24T14:15:22Z",
- "delivery_date": "2019-08-24T14:15:22Z",
- "priority": 0,
- "contact_info": "string"
}