Movies


              
                GET /plain_api/movies
              
                HTTP 200 OK
Content-Type: text/html; charset=utf-8
[
  {
    "id": 1,
    "name": "Star Wars IV: A New Hope",
    "price": "14.99",
    "created_at": "2023-03-29T05:03:27.437Z",
    "updated_at": "2023-03-29T05:03:27.437Z",
    "main_genre": {
      "id": 1,
      "name": "Action"
    },
    "genres": [

    ],
    "users": [
      {
        "id": 1,
        "login": "example"
      },
      {
        "id": 2,
        "login": "admin"
      }
    ]
  },
  {
    "id": 2,
    "name": "The Dark Knight",
    "price": "13.99",
    "created_at": "2023-03-29T05:03:27.442Z",
    "updated_at": "2023-03-29T05:03:27.442Z",
    "main_genre": {
      "id": 1,
      "name": "Action"
    },
    "genres": [

    ],
    "users": [
      {
        "id": 1,
        "login": "example"
      }
    ]
  },
  {
    "id": 3,
    "name": "The Lord of the Rings: The Fellowship of the Ring",
    "price": "12.99",
    "created_at": "2023-03-29T05:03:27.447Z",
    "updated_at": "2023-03-29T05:03:27.447Z",
    "main_genre": {
      "id": 5,
      "name": "Adventure"
    },
    "genres": [

    ],
    "users": [
      {
        "id": 2,
        "login": "admin"
      }
    ]
  },
  {
    "id": 4,
    "name": "The Matrix",
    "price": "14.5",
    "created_at": "2023-03-29T05:03:27.451Z",
    "updated_at": "2023-03-29T05:03:27.451Z",
    "main_genre": {
      "id": 1,
      "name": "Action"
    },
    "genres": [

    ],
    "users": [
      {
        "id": 2,
        "login": "admin"
      }
    ]
  },
  {
    "id": 5,
    "name": "The Avengers",
    "price": "7.0",
    "created_at": "2023-03-29T05:03:27.456Z",
    "updated_at": "2023-03-29T05:03:27.456Z",
    "main_genre": {
      "id": 1,
      "name": "Action"
    },
    "genres": [

    ],
    "users": [

    ]
  },
  {
    "id": 6,
    "name": "Inception",
    "price": "15.99",
    "created_at": "2023-03-29T05:03:27.460Z",
    "updated_at": "2023-03-29T05:03:27.460Z",
    "main_genre": {
      "id": 4,
      "name": "Fantasy"
    },
    "genres": [

    ],
    "users": [

    ]
  }
]
<?xml version="1.0" encoding="UTF-8"?>
<objects type="array">
  <object>
    <id type="integer">1</id>
    <name>Star Wars IV: A New Hope</name>
    <price type="decimal">14.99</price>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <main-genre>
      <id type="integer">1</id>
      <name>Action</name>
    </main-genre>
    <genres type="array"/>
    <users type="array">
      <user>
        <id type="integer">1</id>
        <login>example</login>
      </user>
      <user>
        <id type="integer">2</id>
        <login>admin</login>
      </user>
    </users>
  </object>
  <object>
    <id type="integer">2</id>
    <name>The Dark Knight</name>
    <price type="decimal">13.99</price>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <main-genre>
      <id type="integer">1</id>
      <name>Action</name>
    </main-genre>
    <genres type="array"/>
    <users type="array">
      <user>
        <id type="integer">1</id>
        <login>example</login>
      </user>
    </users>
  </object>
  <object>
    <id type="integer">3</id>
    <name>The Lord of the Rings: The Fellowship of the Ring</name>
    <price type="decimal">12.99</price>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <main-genre>
      <id type="integer">5</id>
      <name>Adventure</name>
    </main-genre>
    <genres type="array"/>
    <users type="array">
      <user>
        <id type="integer">2</id>
        <login>admin</login>
      </user>
    </users>
  </object>
  <object>
    <id type="integer">4</id>
    <name>The Matrix</name>
    <price type="decimal">14.5</price>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <main-genre>
      <id type="integer">1</id>
      <name>Action</name>
    </main-genre>
    <genres type="array"/>
    <users type="array">
      <user>
        <id type="integer">2</id>
        <login>admin</login>
      </user>
    </users>
  </object>
  <object>
    <id type="integer">5</id>
    <name>The Avengers</name>
    <price type="decimal">7.0</price>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <main-genre>
      <id type="integer">1</id>
      <name>Action</name>
    </main-genre>
    <genres type="array"/>
    <users type="array"/>
  </object>
  <object>
    <id type="integer">6</id>
    <name>Inception</name>
    <price type="decimal">15.99</price>
    <created-at type="dateTime">2023-03-29T05:03:27Z</created-at>
    <updated-at type="dateTime">2023-03-29T05:03:27Z</updated-at>
    <main-genre>
      <id type="integer">4</id>
      <name>Fantasy</name>
    </main-genre>
    <genres type="array"/>
    <users type="array"/>
  </object>
</objects>
Path Verb Controller#Action
movies GET plain_api/movies#index
movies POST plain_api/movies#create
movies OPTIONS plain_api/movies#options
movies/:id GET plain_api/movies#show
movies/:id PUT plain_api/movies#update
movies/:id PATCH plain_api/movies#update
movies/:id DELETE plain_api/movies#destroy