Default
Adds a new rental listing to the database and blockchain.
Optional listing ID
User identifier associated with the listing
Street address of the rental listing
City where the rental is located
State where the rental is located
Postal code for the rental listing
Monthly rental payment
Minimum credit score requirement
Preferred credit score
Minimum income requirement
Preferred income
Property value
Latitude coordinate (optional)
Longitude coordinate (optional)
URL for video walkthrough (optional)
Listing created successfully
Bad request - Missing or invalid parameters
Server error
POST /stage/listings HTTP/1.1
Host: 2glwwoadjj.execute-api.us-east-1.amazonaws.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 265
{
"id": "text",
"userId": "text",
"addressStreet": "text",
"addressCity": "text",
"addressState": "text",
"addressPostal": "text",
"monthlyPayment": 1,
"minCredit": 1,
"prefCredit": 1,
"minIncome": 1,
"prefIncome": 1,
"propertyValue": 1,
"latitude": 1,
"longitude": 1,
"walkthroughLink": "text"
}
{
"message": "text",
"listingId": "text",
"transactionHash": "text"
}
Retrieves a specific rental listing by its ID.
The unique identifier of the listing
Listing retrieved successfully
Resource not found
Server error
GET /stage/listing/{ListingKey} HTTP/1.1
Host: 2glwwoadjj.execute-api.us-east-1.amazonaws.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
"ListingId": {
"S": "text"
},
"UserId": {
"S": "text"
},
"StreetAddress": {
"S": "text"
},
"City": {
"S": "text"
},
"State": {
"S": "text"
},
"PostalCode": {
"S": "text"
},
"Country": {
"S": "text"
},
"MonthlyRent": {
"N": "text"
},
"PropertyValue": {
"N": "text"
},
"Latitude": {
"N": "text",
"NULL": true
},
"Longitude": {
"N": "text",
"NULL": true
},
"walkthroughLink": {
"S": "text"
}
}
Retrieves all listings for a specific user.
The user ID to get listings for
Listings retrieved successfully
Resource not found
Server error
GET /stage/listings/user/{UserId} HTTP/1.1
Host: 2glwwoadjj.execute-api.us-east-1.amazonaws.com
X-API-Key: YOUR_API_KEY
Accept: */*
[
{
"ListingId": {
"S": "text"
},
"UserId": {
"S": "text"
},
"StreetAddress": {
"S": "text"
},
"City": {
"S": "text"
},
"State": {
"S": "text"
},
"PostalCode": {
"S": "text"
},
"Country": {
"S": "text"
},
"MonthlyRent": {
"N": "text"
},
"PropertyValue": {
"N": "text"
},
"Latitude": {
"N": "text",
"NULL": true
},
"Longitude": {
"N": "text",
"NULL": true
},
"walkthroughLink": {
"S": "text"
}
}
]
Deletes a specific listing from the database.
The unique identifier of the listing to delete
Listing deleted successfully
Bad request - Missing or invalid parameters
Resource not found
Server error
DELETE /stage/listing/{ListingId} HTTP/1.1
Host: 2glwwoadjj.execute-api.us-east-1.amazonaws.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
"message": "text"
}
Retrieves listings filtered by postal code.
The postal code to search for
Listings retrieved successfully
Resource not found
Server error
GET /stage/listings/postal/{postalCode} HTTP/1.1
Host: 2glwwoadjj.execute-api.us-east-1.amazonaws.com
X-API-Key: YOUR_API_KEY
Accept: */*
[
{
"ListingId": {
"S": "text"
},
"UserId": {
"S": "text"
},
"StreetAddress": {
"S": "text"
},
"City": {
"S": "text"
},
"State": {
"S": "text"
},
"PostalCode": {
"S": "text"
},
"Country": {
"S": "text"
},
"MonthlyRent": {
"N": "text"
},
"PropertyValue": {
"N": "text"
},
"Latitude": {
"N": "text",
"NULL": true
},
"Longitude": {
"N": "text",
"NULL": true
},
"walkthroughLink": {
"S": "text"
}
}
]
Retrieves listings filtered by city.
The city to search for
Listings retrieved successfully
Resource not found
Server error
GET /stage/listings/city/{city} HTTP/1.1
Host: 2glwwoadjj.execute-api.us-east-1.amazonaws.com
X-API-Key: YOUR_API_KEY
Accept: */*
[
{
"ListingId": {
"S": "text"
},
"UserId": {
"S": "text"
},
"StreetAddress": {
"S": "text"
},
"City": {
"S": "text"
},
"State": {
"S": "text"
},
"PostalCode": {
"S": "text"
},
"Country": {
"S": "text"
},
"MonthlyRent": {
"N": "text"
},
"PropertyValue": {
"N": "text"
},
"Latitude": {
"N": "text",
"NULL": true
},
"Longitude": {
"N": "text",
"NULL": true
},
"walkthroughLink": {
"S": "text"
}
}
]
Performs a case-insensitive search on listings based on field and value.
The field to search in
The value to search for
Listings retrieved successfully
Bad request - Missing or invalid parameters
Resource not found
Server error
GET /stage/listings/search HTTP/1.1
Host: 2glwwoadjj.execute-api.us-east-1.amazonaws.com
X-API-Key: YOUR_API_KEY
Accept: */*
[
{
"ListingId": {
"S": "text"
},
"UserId": {
"S": "text"
},
"StreetAddress": {
"S": "text"
},
"City": {
"S": "text"
},
"State": {
"S": "text"
},
"PostalCode": {
"S": "text"
},
"Country": {
"S": "text"
},
"MonthlyRent": {
"N": "text"
},
"PropertyValue": {
"N": "text"
},
"Latitude": {
"N": "text",
"NULL": true
},
"Longitude": {
"N": "text",
"NULL": true
},
"walkthroughLink": {
"S": "text"
}
}
]
Retrieves requirements for a listing from blockchain contract.
The listing ID to query requirements for
Requirements retrieved successfully
Resource not found
Server error
GET /stage/listing/requirements/{ListingKey} HTTP/1.1
Host: 2glwwoadjj.execute-api.us-east-1.amazonaws.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
"listingId": "text",
"minCreditScore": 1,
"prefCreditScore": 1,
"minIncome": 1,
"prefIncome": 1
}
Retrieves saved listings for a specific user.
The user ID to get saved listings for
Saved listings retrieved successfully
Bad request - Missing or invalid parameters
Server error
GET /stage/savedListings/{userId} HTTP/1.1
Host: 2glwwoadjj.execute-api.us-east-1.amazonaws.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
"savedListings": {
"UserKey": "text",
"ListingIds": {
"SS": [
"text"
]
}
},
"listingDetails": [
{
"ListingId": {
"S": "text"
},
"UserId": {
"S": "text"
},
"StreetAddress": {
"S": "text"
},
"City": {
"S": "text"
},
"State": {
"S": "text"
},
"PostalCode": {
"S": "text"
},
"Country": {
"S": "text"
},
"MonthlyRent": {
"N": "text"
},
"PropertyValue": {
"N": "text"
},
"Latitude": {
"N": "text",
"NULL": true
},
"Longitude": {
"N": "text",
"NULL": true
},
"walkthroughLink": {
"S": "text"
}
}
]
}
Adds a listing to a user's saved listings.
The user ID
The listing ID to save
Listing saved successfully
Bad request - Missing or invalid parameters
Server error
POST /stage/savedListings HTTP/1.1
Host: 2glwwoadjj.execute-api.us-east-1.amazonaws.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"userId": "text",
"listingId": "text"
}
{
"message": "text"
}
Removes a listing from a user's saved listings.
The user ID
The listing ID to remove
Listing removed successfully
Bad request - Missing or invalid parameters
Resource not found
Server error
DELETE /stage/savedListings/{userId}/{listingId} HTTP/1.1
Host: 2glwwoadjj.execute-api.us-east-1.amazonaws.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
"message": "text"
}