| /building-instructions/{apiKey} | get list of available LEGO® building instructions |
| /building-instructions/{apiKey}/{id} | Get information about one LEGO® building instruction. |
| /user-by-email/{apiKey}/{email} | Perform login operation. After authorization provide users account informations. |
| /lego-set/{apiKey}/{legoSetNo} | Get detail informations about LEGO® set. |
| /lego-category/{apiKey}/ | Get list of categories in root category. |
| /lego-category/{apiKey}/${categoryPath} | Get list of categories in root category. |
| /lego-set-category/{apiKey}/ | get list of categories in root category. |
| /lego-set-category/{apiKey}/${cateoryPath} | get list of categories in root category. |
| /collection/{apiKey}/{idUser} | after authorization get list of user entry in his collection. |
| /collection/{apiKey}/{idUser}/{idLegoSet} | After authorization allows manage content of LEGO® collection. |
get list of available LEGO® building instructions
Allows to get full list of available building instructions
[
{
"description" : "137",
"idInstruction" : 1,
"name" : "137",
"shortcutPicture" : "http://www.cubiculus.com/original/0137/TN_01379.JPG",
"stepGroups" : null
},
{
"description" : "Curved Track",
"idInstruction" : 2,
"name" : "151",
"shortcutPicture" : "http://www.cubiculus.com/original/0151/TN_01511.JPG",
"stepGroups" : null
},
{
"description" : "London Bus",
"idInstruction" : 3,
"name" : "313",
"shortcutPicture" : "http://www.cubiculus.com/original/0313/TN_031311.JPG",
"stepGroups" : null
}]
Get information about one LEGO® building instruction.
| id | - | Identification number of building instruction |
Get detail informations about one building instruction.
{
"description" : "Crater Crawler",
"idInstruction" : 250,
"name" : "6826",
"shortcutPicture" : "http://www.cubiculus.com/original/6826/TN_682601.JPG",
"stepGroups" :
[
{
"fileNames" :
[
"http://www.cubiculus.com/original/6826/682602.JPG",
"http://www.cubiculus.com/original/6826/682603.JPG",
"http://www.cubiculus.com/original/6826/682604.JPG",
"http://www.cubiculus.com/original/6826/682605.JPG",
"http://www.cubiculus.com/original/6826/682606.JPG",
"http://www.cubiculus.com/original/6826/682607.JPG",
"http://www.cubiculus.com/original/6826/682608.JPG"
],
"name" : "Crater Crawler"
},
{
"fileNames" :
[
"http://www.cubiculus.com/original/6826/682610.JPG",
"http://www.cubiculus.com/original/6826/682611.JPG",
"http://www.cubiculus.com/original/6826/682612.JPG",
"http://www.cubiculus.com/original/6826/682613.JPG"
],
"name" : "fly"
},
{
"fileNames" :
[
],
"name" : "crew"
}
]
}
Perform login operation. After authorization provide users account informations.
| - | User identifying email. |
Get detail informations about one user. Also prove that login name and passwords are correct. Method require BASIC AUTH HTTP authorization system. Please look at the example code. There are detail working example.
{
"birthDate" : "2006-01-01T01:00:00.000",
"email" : "somebody@somewhere.com",
"idBlog" : 304,
"idImageIcon" : 234,
"idUser" : 304,
"lastLogin" : "2009-07-22T09:50:01.000",
"password" : "l1CEQX",
"registrationDate" : "2009-07-22T09:50:01.000",
"userName" : "somebody"
}
Get detail informations about LEGO® set.
Get detail information about LEGO® set
| legoSetNo | - | LEGO® set number that identify each LEGO® set. Please note that this is related to number that appears at each LEGO® box. |
Provide detail informations about LEGO® set
[
{
"boxNo" : "10187",
"description" : "Super car",
"idLastImageRevision" : null,
"idLastRevision" : 89,
"idLegoBox" : 3,
"idLegoCategory" : 28,
"idLegoModel" : 1,
"imageUrl" : "http://www.cubiculus.com/images/320?w=320&h=200",
"legoModelName" : "Volkswagen Beetle",
"modelImageUrl" : "http://www.cubiculus.com/images/2?w=320&h=200",
"name" : "Volkswagen Beetle II",
"pieces" : 1626,
"price" : 150,
"released" : 2008,
"separator" : null,
"url" : "10187"
}
]
Get list of categories in root category.
Can be used for recursive printing LEGO® category tree.
{
"childrenNames" :
[
"/system",
"/legoland",
"/seasonal",
"/promotional",
"/technic",
"/basic",
"/non-original"
],
"countBoxes" : 15,
"countBuildingInstructions" : 422,
"fullWebPath" : "",
"idBuildingInstructions" :
[
],
"idLegoCategory" : 1,
"idLegoSets" :
[
],
"name" : "root"
}
Get list of categories in root category.
Can be used for recursive printing LEGO® category tree.
| categoryPath | - |
{
"childrenNames" :
[
"/system/town",
"/system/police",
"/system/space",
"/system/train",
"/system/star-wars",
"/system/sculptures",
"/system/designer",
"/system/model-team",
"/system/creator"
],
"countBoxes" : 15,
"countBuildingInstructions" : 255,
"fullWebPath" : "/system",
"idBuildingInstructions" :
[
],
"idLegoCategory" : 2,
"idLegoSets" :
[
10
],
"name" : "SYSTEM"
}
get list of categories in root category.
| - | ||
| - |
[
{
"boxNo" : "10187",
"description" : "Super car",
"idLastImageRevision" : null,
"idLastRevision" : 6,
"idLegoBox" : 3,
"idLegoCategory" : 28,
"idLegoModel" : 1,
"imageUrl" : "http://www.cubiculus.com/images/236?w=320&h=200",
"legoModelName" : "Volkswagen Beetle",
"modelImageUrl" : "http://www.cubiculus.com/images/2?w=320&h=200",
"name" : "Volkswagen Beetle",
"price" : 120,
"released" : 2008,
"separator" : null
},
{
"boxNo" : "6747",
"description" : "Race Rider",
"idLastImageRevision" : null,
"idLastRevision" : 47,
"idLegoBox" : 13,
"idLegoCategory" : 43,
"idLegoModel" : 10,
"imageUrl" : "http://www.cubiculus.com/images/256?w=320&h=200",
"legoModelName" : "Race Rider",
"modelImageUrl" : "http://www.cubiculus.com/images/11?w=320&h=200",
"name" : "Race Rider",
"price" : 20,
"released" : 2008,
"separator" : null
},
{
"boxNo" : "4994",
"description" : "Fierce Creatures",
"idLastImageRevision" : null,
"idLastRevision" : 63,
"idLegoBox" : 17,
"idLegoCategory" : 43,
"idLegoModel" : 14,
"imageUrl" : "http://www.cubiculus.com/images/264?w=320&h=200",
"legoModelName" : "Fierce Creatures",
"modelImageUrl" : "http://www.cubiculus.com/images/15?w=320&h=200",
"name" : "Fierce Creatures",
"price" : 13,
"released" : 2008,
"separator" : null
},
...
}
get list of categories in root category.
| cateoryPath | - | Category path that identify some LEGO® category |
[
{
"boxNo" : "10187",
"description" : "Super car",
"idLastImageRevision" : null,
"idLastRevision" : 6,
"idLegoBox" : 3,
"idLegoCategory" : 28,
"idLegoModel" : 1,
"imageUrl" : "http://www.cubiculus.com/images/236?w=320&h=200",
"legoModelName" : "Volkswagen Beetle",
"modelImageUrl" : "http://www.cubiculus.com/images/2?w=320&h=200",
"name" : "Volkswagen Beetle",
"price" : 120,
"released" : 2008,
"separator" : null
},
{
"boxNo" : "6747",
"description" : "Race Rider",
"idLastImageRevision" : null,
"idLastRevision" : 47,
"idLegoBox" : 13,
"idLegoCategory" : 43,
"idLegoModel" : 10,
"imageUrl" : "http://www.cubiculus.com/images/256?w=320&h=200",
"legoModelName" : "Race Rider",
"modelImageUrl" : "http://www.cubiculus.com/images/11?w=320&h=200",
"name" : "Race Rider",
"price" : 20,
"released" : 2008,
"separator" : null
},
{
"boxNo" : "4994",
"description" : "Fierce Creatures",
"idLastImageRevision" : null,
"idLastRevision" : 63,
"idLegoBox" : 17,
"idLegoCategory" : 43,
"idLegoModel" : 14,
"imageUrl" : "http://www.cubiculus.com/images/264?w=320&h=200",
"legoModelName" : "Fierce Creatures",
"modelImageUrl" : "http://www.cubiculus.com/images/15?w=320&h=200",
"name" : "Fierce Creatures",
"price" : 13,
"released" : 2008,
"separator" : null
},
...
}
after authorization get list of user entry in his collection.
| idUser | - | User identification number, can be get from user-by-email resource |
Require authorization.
{
"items" :
[
{
"comment" : null,
"idLegoSet" : 5,
"quantity" : 1
}
]
}
After authorization allows manage content of LEGO® collection.
| idUser | - | User identification number, can be get from user-by-email resource |
| idLegoSet | - | identification number of LEGO® set. |
Get information about one collections item. It also confirm that some LEGO® set is in collection.
{
"comment" : null,
"idLegoSet" : 1,
"quantity" : 8
}
Allows store new collection item into collection or update number of owned items.