Marbles


              
                GET /plain_api/marbles
              
                HTTP 200 OK
Content-Type: text/html; charset=utf-8
[
  {
    "id": 1,
    "name": "Example Marble 1",
    "radius_mm": 10,
    "price": "4.0",
    "is_discounted": false,
    "created_at": "2023-03-29T05:03:27.376Z",
    "updated_at": "2023-03-29T05:03:27.376Z",
    "user": {
      "id": 1,
      "login": "example"
    },
    "description": ""
  },
  {
    "id": 2,
    "name": "Example Marble 2",
    "radius_mm": 8,
    "price": "8.0",
    "is_discounted": false,
    "created_at": "2023-03-29T05:03:27.378Z",
    "updated_at": "2023-03-29T05:03:27.378Z",
    "user": {
      "id": 1,
      "login": "example"
    },
    "description": ""
  },
  {
    "id": 3,
    "name": "Admin Marble 1",
    "radius_mm": 11,
    "price": "9.23",
    "is_discounted": false,
    "created_at": "2023-03-29T05:03:27.388Z",
    "updated_at": "2023-03-29T05:03:27.388Z",
    "user": {
      "id": 2,
      "login": "admin"
    },
    "description": ""
  },
  {
    "id": 4,
    "name": "Admin Marble 2",
    "radius_mm": 20,
    "price": "149.23",
    "is_discounted": false,
    "created_at": "2023-03-29T05:03:27.389Z",
    "updated_at": "2023-03-29T05:03:27.389Z",
    "user": {
      "id": 2,
      "login": "admin"
    },
    "description": ""
  },
  {
    "id": 5,
    "name": "Orphan Marble 1",
    "radius_mm": 300,
    "price": "4000.0",
    "is_discounted": false,
    "created_at": "2023-03-29T05:03:27.393Z",
    "updated_at": "2023-03-29T05:03:27.393Z",
    "description": ""
  },
  {
    "id": 6,
    "name": "Orphan Marble 2",
    "radius_mm": 314,
    "price": "5000.0",
    "is_discounted": false,
    "created_at": "2023-03-29T05:03:27.397Z",
    "updated_at": "2023-03-29T05:03:27.397Z",
    "description": ""
  }
]
<?xml version="1.0" encoding="UTF-8"?>
<objects type="array">
  <object>
    <id type="integer">1</id>
    <name>Example Marble 1</name>
    <radius-mm type="integer">10</radius-mm>
    <price type="decimal">4.0</price>
    <is-discounted type="boolean">false</is-discounted>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <user>
      <id type="integer">1</id>
      <login>example</login>
    </user>
    <description></description>
  </object>
  <object>
    <id type="integer">2</id>
    <name>Example Marble 2</name>
    <radius-mm type="integer">8</radius-mm>
    <price type="decimal">8.0</price>
    <is-discounted type="boolean">false</is-discounted>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <user>
      <id type="integer">1</id>
      <login>example</login>
    </user>
    <description></description>
  </object>
  <object>
    <id type="integer">3</id>
    <name>Admin Marble 1</name>
    <radius-mm type="integer">11</radius-mm>
    <price type="decimal">9.23</price>
    <is-discounted type="boolean">false</is-discounted>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <user>
      <id type="integer">2</id>
      <login>admin</login>
    </user>
    <description></description>
  </object>
  <object>
    <id type="integer">4</id>
    <name>Admin Marble 2</name>
    <radius-mm type="integer">20</radius-mm>
    <price type="decimal">149.23</price>
    <is-discounted type="boolean">false</is-discounted>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <user>
      <id type="integer">2</id>
      <login>admin</login>
    </user>
    <description></description>
  </object>
  <object>
    <id type="integer">5</id>
    <name>Orphan Marble 1</name>
    <radius-mm type="integer">300</radius-mm>
    <price type="decimal">4000.0</price>
    <is-discounted type="boolean">false</is-discounted>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <description></description>
  </object>
  <object>
    <id type="integer">6</id>
    <name>Orphan Marble 2</name>
    <radius-mm type="integer">314</radius-mm>
    <price type="decimal">5000.0</price>
    <is-discounted type="boolean">false</is-discounted>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <description></description>
  </object>
</objects>
Path Verb Controller#Action
marbles GET plain_api/marbles#index
marbles POST plain_api/marbles#create
marbles OPTIONS plain_api/marbles#options
marbles/:id GET plain_api/marbles#show
marbles/:id PUT plain_api/marbles#update
marbles/:id PATCH plain_api/marbles#update
marbles/:id DELETE plain_api/marbles#destroy