Fetch records [GET]

You can fetch records using your REST API's. In order to make a request, you always need to provide your auth token in the Authorization header.

Example:

Request:

GET

https://<your-app-id>.app.jexia.com/rest/<your-dataset>


Send your Jexia token along in the Authorization header:

"Authorization" : "<your-jexia-token>"

Response:

[
  {
    "id": "9e2eabf5-8a2b-4ffa-bb9f-566ab1e2b514",
    "user_id": "f18669ed-0c3b-4aaa-a3e0-f98930d568cb",
    "category_id": "199a7027-781c-48c4-ac82-5cdf22bb8c8c",
    "title": "My first post",
    "post": "I decided to write very good post, so I begin from this start point",
    "posted": true,
    "created_at": "2016-10-27T12:15:31Z",
    "updated_at": "2016-10-27T12:15:31Z"
  },
  {
    "id": "04bca006-cde8-47bc-a8eb-03c982e400de",
    "user_id": "f18669ed-0c3b-4aaa-a3e0-f98930d568cb",
    "category_id": "e837d481-8e35-411b-bc94-e61d84cb927b",
    "title": "My second post",
    "post": "This post will be draft for now. No one should see this.",
    "posted": false,
    "created_at": "2016-10-27T12:15:31Z",
    "updated_at": "2016-10-27T12:15:31Z"
  },
  {
    "id": "a0d140fb-4256-4018-8a26-97f87ad2173f",
    "user_id": "670b4aeb-e7dc-4a14-862f-89f354797abe",
    "category_id": null,
    "title": "How to get started to write a book",
    "post": "Sometime we decide to do something valuable...",
    "posted": true,
    "created_at": "2016-10-27T12:15:31Z",
    "updated_at": "2016-10-27T12:15:31Z"
  },
]

Advanced users:

Curl

curl -i -H "Accept: application/json" -H ": application/json" -H "Authorization: <jexia-auth-token>" -X GET https://<project-id>.jexia.com/rest/<dataset>