Skip to content

Instantly share code, notes, and snippets.

@andreareginato
Last active December 30, 2015 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreareginato/7893401 to your computer and use it in GitHub Desktop.
Save andreareginato/7893401 to your computer and use it in GitHub Desktop.
// yo
{
"id": "526c4ff4d9464da9f800ff7f",
"contract": "rent", // rent | sale
"category": "residential", // residential
"typology": "apartment", // apartment | house
"sub_typology": [ // loft, attic, studio
"loft",
"attic"
],
"timeframe": "long", // short | long
"grouping": "rooms", // entirely | rooms (?)
"sell_presence": "free", // free | populated
"sell_type": "naked_property", // property | naked_property
"price": 1200,
"expenses": 120,
"warranty": 3,
"available_from": "2013-10-26T22:59:49Z",
"address": "Calzecchi 5, 20133, Milan",
"location": {
"latitude": 50,
"longitude": 50
},
"house_number": "5/A",
"unit_number": "12",
"floor": 4,
"floors": 4,
"condition": "new", // new | renovated | discrete | to_be_renovated
"furniture": "empty", // empty | furnished | only_kitchen
"rooms_count": 3,
"bedrooms_count": 2,
"living_rooms_count": 1,
"bathrooms_count": 2,
"bathroom_types": [ // tub, shower
"tub", "shower"
],
"kitchen_type": "livable", // livable | kitchen | kitchenette
"internal_spaces": [ // storage, cellar, attic
"storage",
"cellar"
],
"external_spaces": [ // balcony, terrace, garden
"balcony"
],
"parking_types": [ // box, garage, spot
"box",
"garage"
],
"energy_class": "a", // a_p | a | b | c | d | e | f | g
"ipe": 470,
"heating": "centralized", // centralized | autonomous | pay_as_you_go
"extras": [ // washing_machine, dish_washer, doorman, air_conditioning, swimming_pool, wifi
"washing_machine",
"doorman",
"wifi"
],
"ideal_user": {
"gender": "male", // male | female
"activity": "worker", // student | worker
"smoker": "smoker", // smoker | no_smoker
"pet": "cat", // no_pets, both_pets, cat, dog
"min_age": 20,
"max_age": 35
},
"living_user": {
"gender": "male", // male | female
"activity": "worker", // student | worker
"smoker": "smoker", // smoker | no_smoker
"pet": "no_pets", // no_pets, both_pets, cat, dog
"min_age": 20,
"max_age": 35
},
"bedrooms": [{
"id": "526c4ff4d9464da9f800ff7c",
"typology": "single", // single | double
"area": 20,
"price": 350,
"expenses": 35,
"free_beds": 1,
"balcony": true,
"bathroom": false,
"published": true,
"available_from": "2013-10-26T22:59:49Z",
"beds": [{
"published": true,
"available_from": "2013-10-26T22:59:49Z",
"price": 350,
"expenses": 35,
"living_user": {
"gender": "male", // male | female
"activity": "worker", // student | worker
"smoker": "smoker", // smoker | no_smoker
"pet": "no_pets", // no_pets, both_pets, cat, dog
"min_age": 20,
"max_age": 20
}
}]
}],
"creator": {
"id": "526253c8ff3fd6c91e000001",
"fullname": "Alice Wonderland",
"avatar": "/assets/avatar.png"
},
"photos": [
{
"big": "http://gromia.s3.amazonaws.com/photos/26bd/big.jpg",
"medium": "http://gromia.s3.amazonaws.com/photos/2ff8b/medium.jpg",
"thumb": "http://gromia.s3.amazonaws.com/photos/2ff8b/thumb.jpg"
}, {
// ...
}
],
"published": true,
"created_at": "2013-10-26T22:02:03Z",
"updated_at": "2013-10-26T23:02:03Z"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment