Single Record

Endpoint

get /records/{id} - gets a single record resource

Parameters

Parameter Parameter Type Data Type
api-key header string Required
Authorization header string Required

Error messages

  • invalid HTTP_API_KEY
  • Not authenticated

HTTP response codes:

  • 200 - Success
  • 401 - Unauthorized action

Example request

curl --request GET \
  --url 'https://api-dev.radiozu.ro/v1/recordings/3?include=show' \
  --header 'Authorization: Bearer AUTH_TOKEN' \
  --header 'accept: application/json' \
  --header 'api-key: API_KEY' 

Response fields

A single record object. One record object can be described by:

  • id - show id
  • title - show name, string
  • description - nullable, string
  • tag - nullable, string
  • audioUrl - nullable, string
  • duration - nullable, integer
  • image - nullable|empty string, string
  • published_at - string
  • show - one show object.

One show object is described by:

  • id - show id
  • title - show name, string
  • description - nullable, string
  • details - nullable, string
  • image - nullable, string

Example response

{
    "data": {
        "id": 3,
        "title": "Popescu si Cuza alt episod",
        "description": "alt textalt textalt textalt textalt textalt textalt textalt textalt textalt textalt textalt textalt textalt textalt textalt textalt textalt textalt textalt textalt textalt textalt textalt textalt text",
        "tag": "Popescu si Cuza",
        "audioUrl": "https:\/\/cms.digitalag.ro\/cms_websites\/cms_radiozu\/library\/audio\/2022\/08\/PC20220303.mp3",
        "duration": 4740,
        "image": "https:\/\/cms.digitalag.ro\/cms_websites\/cms_radiozu\/library\/img\/2009\/03\/siglazu-one-radio.jpg",
        "published_at": "2022-08-01 15:18:00",
        "show": {
            "id": 14,
            "title": "Popescu și Cuza",
            "description": "Să înceapă veselia cu Popescu și Cuza",
            "details": "De luni până vineri, de la 16 la 18",
            "image": "https:\/\/cms.digitalag.ro\/cms_websites\/cms_radiozu\/popescucuzashow.jpg"
        }
    }
}