{"_id":"56975101d231880d00676e6c","editedParams2":true,"githubsync":"","version":{"_id":"5668fab608f90021008e8832","__v":19,"project":"5668fab608f90021008e882f","createdAt":"2015-12-10T04:08:22.769Z","releaseDate":"2015-12-10T04:08:22.769Z","categories":["5668fab708f90021008e8833","569740f124490c3700170a64","569742b58560a60d00e2c25d","569742bd0b09a41900b2446c","569742cd69393517000c82b3","569742f459a6692d003fad8f","569743020b09a41900b2446d","5697430b69393517000c82b5","56a17776470ae00d00c30642","56a2c48a831e2a0d0069b1ad","56b535757bccae0d00e9a1cd","56e1ff6aa49fdc0e005746b5","57e1c88115bf6522002a5e4e","57fa65275ba65a17008b988f","57fbeea34002550e004c032e","58474584889b6c2d00fb86e9","58475dcc64157f0f002f1907","587e7b5158666c2700965d4e","58a349fc30852819007ba083"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.18.0","version":"1.18"},"__v":8,"category":{"_id":"569742f459a6692d003fad8f","pages":["56974f48d231880d00676e6a","56975101d231880d00676e6c","5697511369393517000c82c8","5697512159a6692d003fada0","569752668560a60d00e2c268","569752898560a60d00e2c26b","569752add231880d00676e70","569752bd8400d52d00dd56ab","569752c769393517000c82cc","56e9cf33fae86b0e00e5394f","56e9cfe2af392b170035f68f"],"project":"5668fab608f90021008e882f","version":"5668fab608f90021008e8832","__v":11,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-01-14T06:40:52.350Z","from_sync":false,"order":1,"slug":"api-integration-rest-api","title":"REST API (For App/Backend)"},"parentDoc":null,"project":"5668fab608f90021008e882f","editedParams":true,"user":"56839cf74aecbd0d00a4659e","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-01-14T07:40:49.849Z","link_external":false,"link_url":"https://documenter.getpostman.com/view/2166502/liftigniter/7TFGvSV#ef8dcb45-5b99-c0c3-f385-e83b6d3b55ca","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"name":"cURL insert item, wait for 60 seconds and then request it","language":"curl","code":"# We first insert an item to make sure our CURL will work\ncurl -H \"Content-Type: application/json\" -d '{\n  \"apiKey\" : \"YOUR_API_KEY\",\n  \"version\" : 1,\n  \"items\" : [\n    {\n      \"title\" : \"An Ugly Sea\",\n      \"url\" : \"https://www.liftigniter.com/ugly-sea/\",\n      \"thumbnail\" : \"http://cdn.dummydomain.com/infernal-sea-2015.jpg\",\n      \"description\" : \"The sea can be terrible to look at, when it reveals infernal depth.\",\n      \"category\" : [\"sea\", \"horror\", \"tragedy\"],\n      \"author\" : \"Las T. Enusok\",\n      \"rating\" : 0.1,\n      \"upvotes\" : 2\n    }\n  ]\n}' https://api.petametrics.com/v1/inventory | python -mjson.tool\n\n# We then sleep for 60 seconds to make sure the insertion is completed. Insertions are usually faster but this is just to be safe.\nsleep 60\n\n# We now fetch the item (our main command!)\ncurl -H \"x-api-key:527ccb8c-0f33-47e5-bff8-d9c2bcaef59e\" https://api.petametrics.com/v1/inventory/https%3A%2F%2Fwww.liftigniter.com%2Fugly-sea%2F | python -mjson.tool\n"},{"language":"curl","code":"# We first delete the item, to make sure it does not exist\ncurl -H \"Content-Type: application/json\" -X \"DELETE\" -d '{\n   \"apiKey\": \"527ccb8c-0f33-47e5-bff8-d9c2bcaef59e\",\n   \"items\": [\n       {\n         \"url\" : \"https://www.liftigniter.com/ugly-sea/\"\n       }\n   ]\n}' https://api.petametrics.com/v1/inventory | python -mjson.tool\n\n# We then sleep for 60 seconds to make sure the deletion is completed. Deletions are usually faster but this is just to be safe.\nsleep 60\n\n# We now fetch the item (our main command!)\ncurl -H \"x-api-key:527ccb8c-0f33-47e5-bff8-d9c2bcaef59e\" https://api.petametrics.com/v1/inventory/https%3A%2F%2Fwww.liftigniter.com%2Fugly-sea%2F | python -mjson.tool","name":"cURL delete item, wait for 60 seconds, and then request it"}]},"method":"get","results":{"codes":[{"code":"{\n    \"item\": {\n        \"author\": [\n            \"Las T. Enusok\"\n        ],\n        \"category\": [\n            \"sea\",\n            \"horror\",\n            \"tragedy\"\n        ],\n        \"description\": [\n            \"The sea can be terrible to look at, when it reveals infernal depth.\"\n        ],\n        \"rating\": 0.1,\n        \"thumbnail\": [\n            \"http://cdn.dummydomain.com/infernal-sea-2015.jpg\"\n        ],\n        \"title\": [\n            \"An Ugly Sea\"\n        ],\n        \"upvotes\": 2.0,\n        \"url\": [\n            \"https://www.liftigniter.com/ugly-sea/\"\n        ]\n    }\n}\n","name":"insert item, wait for 60 seconds, and then request it","status":200,"language":"json"},{"status":400,"language":"json","code":"{\n    \"status\": \"Bad Request: Inventory not found.\",\n    \"statusCode\": 400\n}\n","name":"Delete item, wait for 60 seconds, and then request it"}]},"settings":"56975ef369393517000c82d7","auth":"optional","params":[{"_id":"56975a008400d52d00dd56b5","ref":"","in":"path","required":true,"desc":"ID of the `inventory` item","default":"","type":"string","name":"itemId"}],"url":"/inventory/:itemId"},"isReference":true,"order":7,"body":"[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"URL encoding\",\n  \"body\": \"Make sure that the `itemId` is URL encoded.\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Delay in inventory insertion\",\n  \"body\": \"After making a POST request to register an inventory, it can take between one and five minutes for the item to get registered in our datastore.\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"User-friendly alternative\"\n}\n[/block]\nInstead of using this endpoint, you can use the Insights panel in the LiftIgniter lab. There, you will enter the ID and hit Submit. That will display the data that you are looking for as well as other real-time coview data that might be of interest to you.","excerpt":"This is a `GET` request that returns your specified contents from LiftIgniter `Inventory` store.","slug":"inventoryid","type":"link","title":"/inventory/:itemId - GET"}

/inventory/:itemId - GET

This is a `GET` request that returns your specified contents from LiftIgniter `Inventory` store.