Users


              
                GET /plain_api/users
              
                HTTP 200 OK
Content-Type: text/html; charset=utf-8
[
  {
    "id": 1,
    "login": "example",
    "is_admin": false,
    "age": 23,
    "balance": "20.34",
    "state": "pending",
    "status": "online",
    "created_at": "2023-03-29T05:03:27.374Z",
    "updated_at": "2023-03-29T05:03:27.374Z",
    "movies": [
      {
        "id": 1,
        "name": "Star Wars IV: A New Hope"
      },
      {
        "id": 2,
        "name": "The Dark Knight"
      }
    ],
    "emails": [

    ],
    "managed_users": [

    ],
    "marbles": [
      {
        "id": 1,
        "name": "Example Marble 1"
      },
      {
        "id": 2,
        "name": "Example Marble 2"
      }
    ]
  },
  {
    "id": 2,
    "login": "admin",
    "is_admin": true,
    "age": 34,
    "balance": "230.34",
    "state": "default",
    "status": "",
    "created_at": "2023-03-29T05:03:27.386Z",
    "updated_at": "2023-03-29T05:03:27.386Z",
    "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"
      }
    ],
    "emails": [

    ],
    "managed_users": [

    ],
    "marbles": [
      {
        "id": 3,
        "name": "Admin Marble 1"
      },
      {
        "id": 4,
        "name": "Admin Marble 2"
      }
    ]
  }
]
<?xml version="1.0" encoding="UTF-8"?>
<objects type="array">
  <object>
    <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-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03: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>
    <emails type="array"/>
    <managed-users type="array"/>
    <marbles type="array">
      <marble>
        <id type="integer">1</id>
        <name>Example Marble 1</name>
      </marble>
      <marble>
        <id type="integer">2</id>
        <name>Example Marble 2</name>
      </marble>
    </marbles>
  </object>
  <object>
    <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-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03: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>
    <emails type="array"/>
    <managed-users type="array"/>
    <marbles type="array">
      <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>
  </object>
</objects>
Path Verb Controller#Action
users GET plain_api/users#index
users POST plain_api/users#create
users OPTIONS plain_api/users#options
users/:id GET plain_api/users#show
users/:id PUT plain_api/users#update
users/:id PATCH plain_api/users#update
users/:id DELETE plain_api/users#destroy