This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X PUT http://apibunny.com:80/users/mikz | |
curl: (52) Empty reply from server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cKWzKLGvDPgTp4TH": { | |
"id": "cKWzKLGvDPgTp4TH", | |
"name": "Entrance Hallway", | |
"readableId": 0, | |
"type": "start", | |
"links": { | |
"east": "O5P4kC0e4IyfT1p1", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"O5P4kC0e4IyfT1p1": { | |
"id": "O5P4kC0e4IyfT1p1", | |
"name": "Kitchen", | |
"readableId": 5, | |
"type": "none", | |
"links": { | |
"east": "aEjCPC7QQzsyLKPf", | |
"west": "cKWzKLGvDPgTp4TH", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"aEjCPC7QQzsyLKPf": { | |
"id": "aEjCPC7QQzsyLKPf", | |
"name": "Nursery", | |
"readableId": 10, | |
"type": "none", | |
"links": { | |
"south": "JF8GxkVonlLGXMPg", | |
"west": "O5P4kC0e4IyfT1p1", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"JF8GxkVonlLGXMPg": { | |
"id": "JF8GxkVonlLGXMPg", | |
"name": "Laundry Room", | |
"readableId": 11, | |
"type": "none", | |
"links": { | |
"north": "aEjCPC7QQzsyLKPf", | |
"east": "qHo8xjlfqNGzyUEq", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"qHo8xjlfqNGzyUEq": { | |
"id": "qHo8xjlfqNGzyUEq", | |
"name": "Hobby Room", | |
"readableId": 16, | |
"type": "none", | |
"links": { | |
"east": "4BFD5MmeNTnBhpf2", | |
"west": "JF8GxkVonlLGXMPg", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"4BFD5MmeNTnBhpf2": { | |
"id": "4BFD5MmeNTnBhpf2", | |
"name": "Garage", | |
"readableId": 21, | |
"type": "none", | |
"links": { | |
"north": "HHSXiiZYALRKvKrr", | |
"south": "kFjHASDtvsXOoRno", | |
"west": "qHo8xjlfqNGzyUEq", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"HHSXiiZYALRKvKrr": { | |
"id": "HHSXiiZYALRKvKrr", | |
"name": "Servant's Quarters", | |
"readableId": 20, | |
"type": "none", | |
"links": { | |
"south": "4BFD5MmeNTnBhpf2", | |
"west": "EGNNTPQtAqaPP5JS", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"kFjHASDtvsXOoRno": { | |
"id": "kFjHASDtvsXOoRno", | |
"name": "Tool Room", | |
"readableId": 22, | |
"type": "none", | |
"links": { | |
"north": "4BFD5MmeNTnBhpf2", | |
"west": "9VRE36HXCInwyrQ4", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"EGNNTPQtAqaPP5JS": { | |
"id": "EGNNTPQtAqaPP5JS", | |
"name": "Standing Room", | |
"readableId": 15, | |
"type": "none", | |
"links": { | |
"east": "HHSXiiZYALRKvKrr", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"9VRE36HXCInwyrQ4": { | |
"id": "9VRE36HXCInwyrQ4", | |
"name": "Observatory", | |
"readableId": 17, | |
"type": "none", | |
"links": { | |
"east": "kFjHASDtvsXOoRno", | |
"south": "CXSr6jVgwcKXFU3O", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"CXSr6jVgwcKXFU3O": { | |
"id": "CXSr6jVgwcKXFU3O", | |
"name": "Hot House", | |
"readableId": 18, | |
"type": "none", | |
"links": { | |
"north": "9VRE36HXCInwyrQ4", | |
"south": "QLwyKOM3hol7K4NN", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"QLwyKOM3hol7K4NN": { | |
"id": "QLwyKOM3hol7K4NN", | |
"name": "Guest Room", | |
"readableId": 19, | |
"type": "none", | |
"links": { | |
"north": "CXSr6jVgwcKXFU3O", | |
"east": "eH8Z3VKgfr5LgBdq", | |
"west": "Hn7OmMREdALh4sTN", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"eH8Z3VKgfr5LgBdq": { | |
"id": "eH8Z3VKgfr5LgBdq", | |
"name": "Spoon Storage", | |
"readableId": 24, | |
"exit_link": "http://apibunny.com:80/users/{your_username}", | |
"type": "exit", | |
"links": { | |
"north": "CFdhQXDJ8XkFQHBf", | |
"west": "QLwyKOM3hol7K4NN", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"Hn7OmMREdALh4sTN": { | |
"id": "Hn7OmMREdALh4sTN", | |
"name": "Sitting Room", | |
"readableId": 14, | |
"type": "none", | |
"links": { | |
"north": "Vd52lOMcjIPPsOAr", | |
"east": "QLwyKOM3hol7K4NN", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"CFdhQXDJ8XkFQHBf": { | |
"id": "CFdhQXDJ8XkFQHBf", | |
"name": "Banquet Hall", | |
"readableId": 23, | |
"type": "none", | |
"links": { | |
"south": "eH8Z3VKgfr5LgBdq", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"Vd52lOMcjIPPsOAr": { | |
"id": "Vd52lOMcjIPPsOAr", | |
"name": "Dining Room", | |
"readableId": 13, | |
"type": "none", | |
"links": { | |
"south": "Hn7OmMREdALh4sTN", | |
"west": "sfgHMVDKwOtYGuFx", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"sfgHMVDKwOtYGuFx": { | |
"id": "sfgHMVDKwOtYGuFx", | |
"name": "Fruit Closet", | |
"readableId": 8, | |
"type": "none", | |
"links": { | |
"east": "Vd52lOMcjIPPsOAr", | |
"south": "NDQD3Ptzu7tnY4Ky", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"NDQD3Ptzu7tnY4Ky": { | |
"id": "NDQD3Ptzu7tnY4Ky", | |
"name": "Den of Forks", | |
"readableId": 9, | |
"type": "none", | |
"links": { | |
"north": "sfgHMVDKwOtYGuFx", | |
"west": "OGWXlcvSOA5JfGpW", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"OGWXlcvSOA5JfGpW": { | |
"id": "OGWXlcvSOA5JfGpW", | |
"name": "Pantry", | |
"readableId": 4, | |
"type": "none", | |
"links": { | |
"north": "u417e1XqaJOCrJOI", | |
"east": "NDQD3Ptzu7tnY4Ky", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"u417e1XqaJOCrJOI": { | |
"id": "u417e1XqaJOCrJOI", | |
"name": "Trophy Room", | |
"readableId": 3, | |
"type": "none", | |
"links": { | |
"north": "fOGBGrafbNEdGklj", | |
"south": "OGWXlcvSOA5JfGpW", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"fOGBGrafbNEdGklj": { | |
"id": "fOGBGrafbNEdGklj", | |
"name": "Library", | |
"readableId": 2, | |
"type": "none", | |
"links": { | |
"east": "FPRLZu95V83HNnJ8", | |
"south": "u417e1XqaJOCrJOI", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"FPRLZu95V83HNnJ8": { | |
"id": "FPRLZu95V83HNnJ8", | |
"name": "Master Bedroom", | |
"readableId": 7, | |
"type": "none", | |
"links": { | |
"north": "mcErBEYx2CC8yO93", | |
"east": "oetBAaFrpiWXsPWG", | |
"west": "fOGBGrafbNEdGklj", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"mcErBEYx2CC8yO93": { | |
"id": "mcErBEYx2CC8yO93", | |
"name": "Cloak Room", | |
"readableId": 6, | |
"type": "none", | |
"links": { | |
"south": "FPRLZu95V83HNnJ8", | |
"west": "GeELaOCaP9bLBo84", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"oetBAaFrpiWXsPWG": { | |
"id": "oetBAaFrpiWXsPWG", | |
"name": "Smoking Room", | |
"readableId": 12, | |
"type": "none", | |
"links": { | |
"west": "FPRLZu95V83HNnJ8", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
}, | |
"GeELaOCaP9bLBo84": { | |
"id": "GeELaOCaP9bLBo84", | |
"name": "Hall of Knives", | |
"readableId": 1, | |
"type": "none", | |
"links": { | |
"east": "mcErBEYx2CC8yO93", | |
"maze": "s7ap0mRDYLrZF6Fi" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
maze = {} | |
ids = [] | |
ids << 'cKWzKLGvDPgTp4TH' | |
while id = ids.shift; unless maze[id]; cell = JSON.parse(HTTPClient.get_content(url % id))['cells'].first; maze[id] = cell; ids.push *cell['links'].except('maze').values; end; end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment