API endpoint that allows BedType to be viewed or edited.

GET /bed-types/?format=api&ordering=icon&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=icon",
    "results": [
        {
            "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
        },
        {
            "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
        }
    ]
}