GET /test_api/read_only_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,
"user_id": 1,
"created_at": "2023-03-29T05:03:27.376Z",
"updated_at": "2023-03-29T05:03:27.376Z",
"user": {
"login": "example",
"age": 23,
"balance": "20.34"
}
},
{
"id": 2,
"name": "Example Marble 2",
"radius_mm": 8,
"price": "8.0",
"is_discounted": false,
"user_id": 1,
"created_at": "2023-03-29T05:03:27.378Z",
"updated_at": "2023-03-29T05:03:27.378Z",
"user": {
"login": "example",
"age": 23,
"balance": "20.34"
}
},
{
"id": 3,
"name": "Admin Marble 1",
"radius_mm": 11,
"price": "9.23",
"is_discounted": false,
"user_id": 2,
"created_at": "2023-03-29T05:03:27.388Z",
"updated_at": "2023-03-29T05:03:27.388Z",
"user": {
"login": "admin",
"age": 34,
"balance": "230.34"
}
},
{
"id": 4,
"name": "Admin Marble 2",
"radius_mm": 20,
"price": "149.23",
"is_discounted": false,
"user_id": 2,
"created_at": "2023-03-29T05:03:27.389Z",
"updated_at": "2023-03-29T05:03:27.389Z",
"user": {
"login": "admin",
"age": 34,
"balance": "230.34"
}
},
{
"id": 5,
"name": "Orphan Marble 1",
"radius_mm": 300,
"price": "4000.0",
"is_discounted": false,
"user_id": null,
"created_at": "2023-03-29T05:03:27.393Z",
"updated_at": "2023-03-29T05:03:27.393Z"
},
{
"id": 6,
"name": "Orphan Marble 2",
"radius_mm": 314,
"price": "5000.0",
"is_discounted": false,
"user_id": null,
"created_at": "2023-03-29T05:03:27.397Z",
"updated_at": "2023-03-29T05:03:27.397Z"
}
]
<?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>
<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>
<user>
<login>example</login>
<age type="integer">23</age>
<balance type="decimal">20.34</balance>
</user>
</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>
<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>
<user>
<login>example</login>
<age type="integer">23</age>
<balance type="decimal">20.34</balance>
</user>
</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>
<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>
<user>
<login>admin</login>
<age type="integer">34</age>
<balance type="decimal">230.34</balance>
</user>
</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>
<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>
<user>
<login>admin</login>
<age type="integer">34</age>
<balance type="decimal">230.34</balance>
</user>
</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>
<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>
</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>
<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>
</object>
</objects>
Path | Verb | Controller#Action |
---|---|---|
read_only_marbles | GET | test_api/read_only_marbles#index |
read_only_marbles | OPTIONS | test_api/read_only_marbles#options |
read_only_marbles/:id | GET | test_api/read_only_marbles#show |