Skip to content

QA interview exercise #2

@rm-andyfrith

Description

@rm-andyfrith

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"
 }
 ]
}```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions