SpyREST

Supported by Mashape

Home » www.cakeside.com Versions » v2 Resources » users » GET /api/v2/users.json

GET /api/v2/users.json

Description

Query Parameters

Name Type Example Values Description
page Integer 2

Response Fields

Name Type Description
users Array
users[].id Integer
users[].name String
users[].createdAt String (Time ISO8601)
users[].updatedAt String (Time ISO8601)
meta.page Integer
meta.perPage Integer
meta.totalPages Integer
Write
Preview

Examples

shows page 2 of users when ...
shows the first page of use...

shows page 2 of users when the page parameter is 2

Recorded at

2015-05-14 18:21:00 UTC

Try with cURL

Request URL

GET /api/v2/users.json?page=2      

Query Parameters

page: 2
      

Request Headers

user-agent: curl/7.37.1
      

Response Headers

x-runtime: 0.028156
x-request-id: 85d9d7d9-51a3-48cc-8141-1405e0026e30
cache-control: max-age=0, private, must-revalidate
etag: W/"e58fa819d5ce75de5dd1f049b358c20e"
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
strict-transport-security: max-age=31536000
status: 200 OK
connection: close
transfer-encoding: chunked
content-type: application/json; charset=utf-8
date: Thu, 14 May 2015 18:21:01 GMT
server: nginx/1.6.2
      

Response Body

Shortened for readability

{
  "users": [
    {
      "id": 126,
      "name": "arlene Mott",
      "createdAt": "2012-07-27T01:43:17.298Z",
      "updatedAt": "2014-08-02T02:29:32.488Z"
    },
    {
      "id": 461,
      "name": "Dot~Teas",
      "createdAt": "2013-08-17T19:28:14.234Z",
      "updatedAt": "2014-09-24T09:49:38.403Z"
    }
  ],
  "meta": {
    "page": 2,
    "perPage": 12,
    "totalPages": 43
  }
}
      

shows the first page of users by default

Recorded at

2015-05-14 18:20:59 UTC

Try with cURL

Request URL

GET /api/v2/users.json      

Request Headers

user-agent: curl/7.37.1
      

Response Headers

x-runtime: 0.051577
x-request-id: 63e55e42-4c53-4b97-a2bf-6f0c0c6cc143
cache-control: max-age=0, private, must-revalidate
etag: W/"48dd407e23383f020a83fe42d3e62b80"
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
strict-transport-security: max-age=31536000
status: 200 OK
connection: close
transfer-encoding: chunked
content-type: application/json; charset=utf-8
date: Thu, 14 May 2015 18:21:00 GMT
server: nginx/1.6.2
      

Response Body

Shortened for readability

{
  "users": [
    {
      "id": 439,
      "name": "Veronica Yoshida",
      "createdAt": "2013-07-08T12:08:09.572Z",
      "updatedAt": "2013-07-08T12:10:39.166Z"
    },
    {
      "id": 440,
      "name": "Karen Miller",
      "createdAt": "2013-07-08T18:38:19.634Z",
      "updatedAt": "2013-07-08T18:38:33.234Z"
    }
  ],
  "meta": {
    "page": 1,
    "perPage": 12,
    "totalPages": 43
  }
}