-
Notifications
You must be signed in to change notification settings - Fork 0
QA interview exercise #2
Copy link
Copy link
Open
Description
Create an endpoint that returns properties based on a postcode parameter.
The uri should be /property?postcode={postcode}
And should return a list of properties within that postcode.
Each property should have an id, priceIndicator, displayAddress, and type.
priceIndicator should be
LOW for prices less than £500,000
MEDIUM for prices less than £1,000,000
HIGH for prices above that
displayAddress should be a single string
A sample response is:
{
"properties": [
{
"id": 1,
"priceIndicator": "LOW",
"displayAddress": "2, Richard Lane, London, W1F 3ER",
"type": "DETACHED"
},
{
"id": 19,
"priceIndicator": "HIGH",
"displayAddress": "1, Value Road, London, W1F 3ER",
"type": "SEMI_DETACHED"
}
]
}```
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels