API endpoint that allows BedType to be viewed or edited.

GET /bed-types/?format=api&ordering=code&page=2
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 12,
    "next": null,
    "previous": "https://api.swistay.com/bed-types/?format=api&ordering=code",
    "results": [
        {
            "id": 11,
            "url": "https://api.swistay.com/bed-types/11/?format=api",
            "code": "TOB",
            "name": "Toddler bed",
            "description": "A toddler bed is a smaller, more compact bed designed for young children",
            "icon": {
                "id": 73,
                "name": "Crib",
                "src": "https://api.swistay.com/media/icons/90539d0ccb544ccd8204bb53129c78df.svg"
            },
            "order": 11
        },
        {
            "id": 7,
            "url": "https://api.swistay.com/bed-types/7/?format=api",
            "code": "WAM",
            "name": "Water mattress",
            "description": "This is a bed or mattress filled with water.",
            "icon": {
                "id": 75,
                "name": "Air mattress",
                "src": "https://api.swistay.com/media/icons/75.svg"
            },
            "order": 7
        }
    ]
}