Users


GET /api/demo/users
HTTP 200 OK
{
  "count": 2,
  "page": 1,
  "page_size": 30,
  "total_pages": 1,
  "results": [
    {
      "id": 1,
      "login": "example",
      "is_admin": false,
      "age": 23,
      "balance": "20.34",
      "state": "pending",
      "status": "online",
      "created_at": "2023-09-25T14:43:27.022Z",
      "updated_at": "2023-09-25T14:43:27.022Z",
      "movies": [
        {
          "id": 1,
          "name": "Star Wars IV: A New Hope"
        },
        {
          "id": 2,
          "name": "The Dark Knight"
        }
      ],
      "movies.count": 2,
      "emails": [

      ],
      "emails.count": 0,
      "managed_users": [

      ],
      "managed_users.count": 0,
      "marbles": [
        {
          "id": 2,
          "name": "Example Marble 2"
        }
      ],
      "marbles.count": 1
    },
    {
      "id": 2,
      "login": "admin",
      "is_admin": true,
      "age": 34,
      "balance": "230.34",
      "state": "default",
      "status": "",
      "created_at": "2023-09-25T14:43:27.035Z",
      "updated_at": "2023-09-25T14:43:27.035Z",
      "movies": [
        {
          "id": 1,
          "name": "Star Wars IV: A New Hope"
        },
        {
          "id": 3,
          "name": "The Lord of the Rings: The Fellowship of the Ring"
        },
        {
          "id": 4,
          "name": "The Matrix"
        }
      ],
      "movies.count": 3,
      "emails": [

      ],
      "emails.count": 0,
      "managed_users": [

      ],
      "managed_users.count": 0,
      "marbles": [
        {
          "id": 1,
          "name": "Example Marble 1"
        },
        {
          "id": 3,
          "name": "Admin Marble 1"
        },
        {
          "id": 4,
          "name": "Admin Marble 2"
        }
      ],
      "marbles.count": 3
    }
  ]
}
<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <count type="integer">2</count>
  <page type="integer">1</page>
  <page-size type="integer">30</page-size>
  <total-pages type="integer">1</total-pages>
  <results type="array">
    <result>
      <id type="integer">1</id>
      <login>example</login>
      <is-admin type="boolean">false</is-admin>
      <age type="integer">23</age>
      <balance type="decimal">20.34</balance>
      <state>pending</state>
      <status>online</status>
      <created-at type="dateTime">2023-09-25T14:43:27Z</created-at>
      <updated-at type="dateTime">2023-09-25T14:43:27Z</updated-at>
      <movies type="array">
        <movie>
          <id type="integer">1</id>
          <name>Star Wars IV: A New Hope</name>
        </movie>
        <movie>
          <id type="integer">2</id>
          <name>The Dark Knight</name>
        </movie>
      </movies>
      <movies.count type="integer">2</movies.count>
      <emails type="array"/>
      <emails.count type="integer">0</emails.count>
      <managed-users type="array"/>
      <managed-users.count type="integer">0</managed-users.count>
      <marbles type="array">
        <marble>
          <id type="integer">2</id>
          <name>Example Marble 2</name>
        </marble>
      </marbles>
      <marbles.count type="integer">1</marbles.count>
    </result>
    <result>
      <id type="integer">2</id>
      <login>admin</login>
      <is-admin type="boolean">true</is-admin>
      <age type="integer">34</age>
      <balance type="decimal">230.34</balance>
      <state>default</state>
      <status></status>
      <created-at type="dateTime">2023-09-25T14:43:27Z</created-at>
      <updated-at type="dateTime">2023-09-25T14:43:27Z</updated-at>
      <movies type="array">
        <movie>
          <id type="integer">1</id>
          <name>Star Wars IV: A New Hope</name>
        </movie>
        <movie>
          <id type="integer">3</id>
          <name>The Lord of the Rings: The Fellowship of the Ring</name>
        </movie>
        <movie>
          <id type="integer">4</id>
          <name>The Matrix</name>
        </movie>
      </movies>
      <movies.count type="integer">3</movies.count>
      <emails type="array"/>
      <emails.count type="integer">0</emails.count>
      <managed-users type="array"/>
      <managed-users.count type="integer">0</managed-users.count>
      <marbles type="array">
        <marble>
          <id type="integer">1</id>
          <name>Example Marble 1</name>
        </marble>
        <marble>
          <id type="integer">3</id>
          <name>Admin Marble 1</name>
        </marble>
        <marble>
          <id type="integer">4</id>
          <name>Admin Marble 2</name>
        </marble>
      </marbles>
      <marbles.count type="integer">3</marbles.count>
    </result>
  </results>
</hash>
Path Verb Controller#Action
users GET api/demo/users#index
users POST api/demo/users#create
users PUT api/demo/users#update_all
users PATCH api/demo/users#update_all
users DELETE api/demo/users#destroy_all
users OPTIONS api/demo/users#options
users/:id GET api/demo/users#show
users/:id PUT api/demo/users#update
users/:id PATCH api/demo/users#update
users/:id DELETE api/demo/users#destroy
api/demo/users/marbles
users/:user_id/marbles GET api/demo/users/marbles#index
users/:user_id/marbles POST api/demo/users/marbles#create
users/:user_id/marbles PUT api/demo/users/marbles#update_all
users/:user_id/marbles PATCH api/demo/users/marbles#update_all
users/:user_id/marbles DELETE api/demo/users/marbles#destroy_all
users/:user_id/marbles OPTIONS api/demo/users/marbles#options
users/:user_id/marbles/:id GET api/demo/users/marbles#show
users/:user_id/marbles/:id PUT api/demo/users/marbles#update
users/:user_id/marbles/:id PATCH api/demo/users/marbles#update
users/:user_id/marbles/:id DELETE api/demo/users/marbles#destroy
api/demo/users/movies
users/:user_id/movies GET api/demo/users/movies#index
users/:user_id/movies POST api/demo/users/movies#create
users/:user_id/movies PUT api/demo/users/movies#update_all
users/:user_id/movies PATCH api/demo/users/movies#update_all
users/:user_id/movies DELETE api/demo/users/movies#destroy_all
users/:user_id/movies OPTIONS api/demo/users/movies#options
users/:user_id/movies/:id GET api/demo/users/movies#show
users/:user_id/movies/:id PUT api/demo/users/movies#update
users/:user_id/movies/:id PATCH api/demo/users/movies#update
users/:user_id/movies/:id DELETE api/demo/users/movies#destroy