Marbles With String Serializer


              
                GET /test_api/marbles_with_string_serializer
              
                HTTP 200 OK
Content-Type: text/html; charset=utf-8
[
  {
    "id": 1,
    "name": "Example Marble 1",
    "price": "4.0"
  },
  {
    "id": 2,
    "name": "Example Marble 2",
    "price": "8.0"
  },
  {
    "id": 3,
    "name": "Admin Marble 1",
    "price": "9.23"
  },
  {
    "id": 4,
    "name": "Admin Marble 2",
    "price": "149.23"
  },
  {
    "id": 5,
    "name": "Orphan Marble 1",
    "price": "4000.0"
  },
  {
    "id": 6,
    "name": "Orphan Marble 2",
    "price": "5000.0"
  }
]
<?xml version="1.0" encoding="UTF-8"?>
<objects type="array">
  <object>
    <id type="integer">1</id>
    <name>Example Marble 1</name>
    <price type="decimal">4.0</price>
  </object>
  <object>
    <id type="integer">2</id>
    <name>Example Marble 2</name>
    <price type="decimal">8.0</price>
  </object>
  <object>
    <id type="integer">3</id>
    <name>Admin Marble 1</name>
    <price type="decimal">9.23</price>
  </object>
  <object>
    <id type="integer">4</id>
    <name>Admin Marble 2</name>
    <price type="decimal">149.23</price>
  </object>
  <object>
    <id type="integer">5</id>
    <name>Orphan Marble 1</name>
    <price type="decimal">4000.0</price>
  </object>
  <object>
    <id type="integer">6</id>
    <name>Orphan Marble 2</name>
    <price type="decimal">5000.0</price>
  </object>
</objects>
Path Verb Controller#Action
marbles_with_string_serializer GET test_api/marbles_with_string_serializer#index
marbles_with_string_serializer POST test_api/marbles_with_string_serializer#create
marbles_with_string_serializer OPTIONS test_api/marbles_with_string_serializer#options
marbles_with_string_serializer/:id GET test_api/marbles_with_string_serializer#show
marbles_with_string_serializer/:id PUT test_api/marbles_with_string_serializer#update
marbles_with_string_serializer/:id PATCH test_api/marbles_with_string_serializer#update
marbles_with_string_serializer/:id DELETE test_api/marbles_with_string_serializer#destroy