Get All Genre

Get All Genre

To get the data in the specified collection. If no parameters are passed, it lists all of them. Otherwise, it lists the documents in the collection matching the specified parameters:

Method : GET

URL : /api/genre

Response : 200 - OK

[
  {
    "id": 1,
    "name": "Pop",
    "created_at": "2022-12-22T13:37:09.832956+00:00"
  },
  {
    "id": 2,
    "name": "Rock",
    "created_at": "2022-12-22T13:37:23.680641+00:00"
  },
  {
    "id": 3,
    "name": "Alternative",
    "created_at": "2022-12-22T13:37:39.65193+00:00"
  },
  {
    "id": 4,
    "name": "Electronic",
    "created_at": "2023-01-04T10:07:18.786904+00:00"
  }
]

Response : 404 - Not Found

Not Found

Response : 500 - Server Error

Internal Server Error