API endpoint that allows BedType to be viewed or edited.

GET /bed-types/?format=api&ordering=-name&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=-name",
    "results": [
        {
            "id": 5,
            "url": "https://api.swistay.com/bed-types/5/?format=api",
            "code": "BUB",
            "name": "Bunk bed",
            "description": "A bunk bed or set of bunks is a type of bed in which one bed frame is stacked on top of another, allowing two or more sleeping-places",
            "icon": {
                "id": 72,
                "name": "Bunk bed",
                "src": "https://api.swistay.com/media/icons/fc8128ea820a4f4f85138456f22aeb30.svg"
            },
            "order": 5
        },
        {
            "id": 6,
            "url": "https://api.swistay.com/bed-types/6/?format=api",
            "code": "AIM",
            "name": "Air mattress",
            "description": "This is an inflatable mattress.",
            "icon": {
                "id": 75,
                "name": "Air mattress",
                "src": "https://api.swistay.com/media/icons/75.svg"
            },
            "order": 6
        }
    ]
}