Marbles With Added Select


              
                GET /test_api/marbles_with_added_select
              
                HTTP 200 OK
Content-Type: text/html; charset=utf-8
[
  {
    "id": 1,
    "name": "Example Marble 1",
    "radius_mm": 10,
    "is_discounted": false,
    "user_id": 1,
    "created_at": "2023-03-29T05:03:27.376Z",
    "updated_at": "2023-03-29T05:03:27.376Z",
    "selected_value": 5
  },
  {
    "id": 2,
    "name": "Example Marble 2",
    "radius_mm": 8,
    "is_discounted": false,
    "user_id": 1,
    "created_at": "2023-03-29T05:03:27.378Z",
    "updated_at": "2023-03-29T05:03:27.378Z",
    "selected_value": 5
  },
  {
    "id": 3,
    "name": "Admin Marble 1",
    "radius_mm": 11,
    "is_discounted": false,
    "user_id": 2,
    "created_at": "2023-03-29T05:03:27.388Z",
    "updated_at": "2023-03-29T05:03:27.388Z",
    "selected_value": 5
  },
  {
    "id": 4,
    "name": "Admin Marble 2",
    "radius_mm": 20,
    "is_discounted": false,
    "user_id": 2,
    "created_at": "2023-03-29T05:03:27.389Z",
    "updated_at": "2023-03-29T05:03:27.389Z",
    "selected_value": 5
  },
  {
    "id": 5,
    "name": "Orphan Marble 1",
    "radius_mm": 300,
    "is_discounted": false,
    "user_id": null,
    "created_at": "2023-03-29T05:03:27.393Z",
    "updated_at": "2023-03-29T05:03:27.393Z",
    "selected_value": 5
  },
  {
    "id": 6,
    "name": "Orphan Marble 2",
    "radius_mm": 314,
    "is_discounted": false,
    "user_id": null,
    "created_at": "2023-03-29T05:03:27.397Z",
    "updated_at": "2023-03-29T05:03:27.397Z",
    "selected_value": 5
  }
]
<?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>
    <is-discounted type="boolean">false</is-discounted>
    <user-id type="integer">1</user-id>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <selected-value type="integer">5</selected-value>
  </object>
  <object>
    <id type="integer">2</id>
    <name>Example Marble 2</name>
    <radius-mm type="integer">8</radius-mm>
    <is-discounted type="boolean">false</is-discounted>
    <user-id type="integer">1</user-id>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <selected-value type="integer">5</selected-value>
  </object>
  <object>
    <id type="integer">3</id>
    <name>Admin Marble 1</name>
    <radius-mm type="integer">11</radius-mm>
    <is-discounted type="boolean">false</is-discounted>
    <user-id type="integer">2</user-id>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <selected-value type="integer">5</selected-value>
  </object>
  <object>
    <id type="integer">4</id>
    <name>Admin Marble 2</name>
    <radius-mm type="integer">20</radius-mm>
    <is-discounted type="boolean">false</is-discounted>
    <user-id type="integer">2</user-id>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <selected-value type="integer">5</selected-value>
  </object>
  <object>
    <id type="integer">5</id>
    <name>Orphan Marble 1</name>
    <radius-mm type="integer">300</radius-mm>
    <is-discounted type="boolean">false</is-discounted>
    <user-id nil="true"/>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <selected-value type="integer">5</selected-value>
  </object>
  <object>
    <id type="integer">6</id>
    <name>Orphan Marble 2</name>
    <radius-mm type="integer">314</radius-mm>
    <is-discounted type="boolean">false</is-discounted>
    <user-id nil="true"/>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <selected-value type="integer">5</selected-value>
  </object>
</objects>
Path Verb Controller#Action
marbles_with_added_select GET test_api/marbles_with_added_select#index
marbles_with_added_select POST test_api/marbles_with_added_select#create
marbles_with_added_select OPTIONS test_api/marbles_with_added_select#options
marbles_with_added_select/:id GET test_api/marbles_with_added_select#show
marbles_with_added_select/:id PUT test_api/marbles_with_added_select#update
marbles_with_added_select/:id PATCH test_api/marbles_with_added_select#update
marbles_with_added_select/:id DELETE test_api/marbles_with_added_select#destroy