Retrieve a Specific Object

Retrieving a specific object

To retrieve a specific object, execute a GET command and also add the object ID to the end of the URL.

https://api.appery.io/rest/1/db/collections/<collectionName>/<objectId>

Example

The following curl shows how to retrieve a specific object from the database:
curl -X GET
-H "X-Appery-Database-Id: 544a5cdfe4b03d005b6233b9"
https://api.appery.io/rest/1/db/collections/todo/54578046e4b0c9bce12bd075
{
    "_id":"5278caf4e4b01085e4b79456",
    "_createdAt":"2013-11-05 10:39:48.757",
    "_updatedAt":"2014-08-26 09:50:03.015",
    "marks":[
        4.0,
        1.0,
        10.0
    ],
    "studentId":60.0,
    "studentName":"John"
}