mbrindley / mls

Node.js app for sync'ing properties between mlspin and the MLS iOS app
1 stars 0 forks source link

Provide an API for the iOS app to consume to fetch the list of properties #2

Open mbrindley opened 11 years ago

mbrindley commented 11 years ago

iOS app should authenticate with cid and pass, should get a list of properties with details and image urls.

mbrindley commented 11 years ago

I'm statically serving this JSON to the iOS app at the moment...

{
    "properties": [
        {
            "mlsNumber":"71478217",
            "address": {
                "streetAddress": "22 David Mugar Way - Unit 1",
                "city": "Boston, MA",
                "state": "MA",
                "postalCode":"02114"
            },
            "price":595000,
            "floor":1,
            "bedroomCount":"2",
            "bathroomCount":"2f 0h",
            "fireplaceCount":"2",
            "roofDeck":"Yes - Common",
            "size":1035,
            "photos":[
                "http://media.mlspin.com/Photo.aspx?mls=71478217&n=0&o=",
                "http://media.mlspin.com/Photo.aspx?mls=71478217&n=1&o=",
                "http://media.mlspin.com/Photo.aspx?mls=71478217&n=2&o=",
                "http://media.mlspin.com/Photo.aspx?mls=71478217&n=3&o="
            ]
        },
        {
            "mlsNumber":"71484630",
            "address": {
                "streetAddress": "61 W Cedar St - Unit 4",
                "city": "Boston, MA",
                "state": "MA",
                "postalCode":"02114"
            },
            "price":549000,
            "floor":4,
            "bedroomCount":"1.5",
            "bathroomCount":"1f 0h",
            "fireplaceCount":"3",
            "roofDeck":"Yes - Common",
            "size":750,
            "photos":[
                "http://media.mlspin.com/Photo.aspx?mls=71484630&n=0&o=",
                "http://media.mlspin.com/Photo.aspx?mls=71484630&n=1&o=",
                "http://media.mlspin.com/Photo.aspx?mls=71484630&n=2&o=",
                "http://media.mlspin.com/Photo.aspx?mls=71484630&n=3&o="
            ]
        }
    ]
}