Bookker API Documentation logo Bookker API Documentation

DEPTRECATED - Recuperar recursos del usuario

Última modificación: 01/06/2022

Recursos del usuario

Los usuarios de las aplicaciones móviles de Bookker tienen un alcance, dentro de su organización, que está limitado por los grupos a los que pertenece dicho usuario.

Siendo así, cada usuario tendrá una serie de recursos a los que tendrá acceso:

También se devuelve el parámetro “organizationHasAllDayWorkstations” que indica si la organización tiene algún puesto configurado para reservas de todo el día o no.

Reservas simultáneas

El sistema de reservas simultáneas sólo aplica a las categorías de PUESTO y ESPACIO.

Hay tres valores posibles:

En caso de que el usuario reserve recursos de varias subcategorías con configuraciones diferentes, prevalecerá la más restrictiva.

Recuperar recursos del usuario

Intenta recuperar los recursos a los que tiene acceso el usuario.

Request

HTTP request
GET /api/v1/users/me/resources
GET /api/v1/users/{userId}/resources
Headers
Header Value Required
Authorization Bearer eyJ0eXBlIjoiSldUIiwiYWxnIjoiSFM1MT… true
Params
Param Value Required
buildingsDate Long - Fecha de última versión en milisegundos. false
floorsDate Long - Fecha de última versión en milisegundos. false
dictionariesDate Long - Fecha de última versión en milisegundos. false
groupsInfoDate Long - Fecha de última versión en milisegundos. false

Response

Si se ha conseguido validar que el usuario tiene acceso para realizar la petición, se devuelve un código 200 con la información de los recursos del usuario, introducido en la petición, en el cuerpo de la respuesta. En caso de no haber información nueva se devuelve un código 304.

{
    "floorsDate": 1597735251000,
    "dictionariesDate": 1584446179000,
    "buildingsDate": 1597735251000,
    "floors": [
        {
            "id": "14ab4017-1261-46ff-af05-eadf5d3d69e8",
            "name": "Planta 1",
            "floorNumber": 1,
            "image": "https://develop.bookkercorp.com/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/buildings/758a81f3-f171-404b-b48c-c922828aed49/floors/14ab4017-1261-46ff-af05-eadf5d3d69e8/maps/40d25abc74f043f4afff218f02d2e024.png",
            "building": {
                "id": "758a81f3-f171-404b-b48c-c922828aed49"
            },
            "status": "ACTIVATED",
            "type": "OFFICE",
            "visible": true
        },
        {
            "id": "210e9b26-7c61-48c9-922f-0fd50d9bb289",
            "name": "Planta 2",
            "floorNumber": 2,
            "image": "https://develop.bookkercorp.com/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/buildings/758a81f3-f171-404b-b48c-c922828aed49/floors/210e9b26-7c61-48c9-922f-0fd50d9bb289/maps/490a9aa9df174bd9b31b073d5a67a6af.png",
            "building": {
                "id": "758a81f3-f171-404b-b48c-c922828aed49"
            },
            "status": "ACTIVATED",
            "type": "OFFICE",
            "visible": true
        },
        {
            "id": "b60c8462-0c40-4f61-b9ce-1e1179f49da1",
            "name": "Sótano 1",
            "floorNumber": -1,
            "image": "https://develop.bookkercorp.com/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/buildings/758a81f3-f171-404b-b48c-c922828aed49/floors/b60c8462-0c40-4f61-b9ce-1e1179f49da1/maps/9f14e8a8597b44fd9ecfb17695d9ddf2.png",
            "building": {
                "id": "758a81f3-f171-404b-b48c-c922828aed49"
            },
            "status": "ACTIVATED",
            "type": "PARKING",
            "visible": true
        },
        {
            "id": "ff5cb250-3970-453b-9dce-97d3d34bf806",
            "name": "Planta 3",
            "floorNumber": 3,
            "image": "https://develop.bookkercorp.com/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/buildings/758a81f3-f171-404b-b48c-c922828aed49/floors/ff5cb250-3970-453b-9dce-97d3d34bf806/maps/80b4a7c968814a71bc290b8c04d1d78b.png",
            "building": {
                "id": "758a81f3-f171-404b-b48c-c922828aed49"
            },
            "status": "ACTIVATED",
            "type": "OFFICE",
            "visible": true
        }
    ],
    "buildings": [
        {
            "id": "758a81f3-f171-404b-b48c-c922828aed49",
            "name": "Jupiter Building",
            "address": {
                "country": "ES",
                "city": "Madrid",
                "address": "Avenida Gran Vía, 85",
                "coordinates": null
            },
            "buildingLocation": {
                "country": {
                    "id": "56371143-db4d-11ec-91a6-029c2d9a9333",
                    "name": "Spain"
                },
                "county": {
                    "id": "b97cb1f4-db74-11ec-91a6-029c2d9a9333",
                    "name": "La Rioja"
                },
                "city": {
                    "id": "bdbfb06c-db74-11ec-91a6-029c2d9a9333",
                    "name": "Logroño"
                }
            },
            "organization": {
                "id": "8aee218a-fce2-4900-9410-00f485a2729e"
            },
            "userCanAccess": true,
            "hasParkingFloors": true,
            "timezone": "Europe/Madrid",
            "status": "ACTIVATED",
            "parkingRule": {
                "parkingRuleId": "758a81f3-f171-404b-b48c-c922828aed49",
                "maximumAdvance": 0,
                "maxParkingBooking": {
                    "timePeriodMs": 3600000,
                    "timePeriodType": "DAILY"
                },
                "maximumCessionRecovery": 90000000,
                "choiceOfPlace": true,
                "accessControlType": "NONE",
                "expirationMargin": 7200000,
                "scannerCheckIn": false,
                "timePreCheckInMs": 7200000,
                "multipleShiftsSelection": true,
                "shifts": [
                    {
                        "id": "06be669f-c25b-11ec-849c-3024a98d7f51",
                        "parkingRuleId": "758a81f3-f171-404b-b48c-c922828aed49",
                        "startMs": 10800000,
                        "endMs": 32400000
                    },
                    {
                        "id": "0be3153f-c25b-11ec-849c-3024a98d7f51",
                        "parkingRuleId": "758a81f3-f171-404b-b48c-c922828aed49",
                        "startMs": 39600000,
                        "endMs": 46800000
                    }
                ]
            },
            "dinningAreaRule": {
                "id": "758a81f3-f171-404b-b48c-c922828aed49",
                "mandatoryCheckIn": true,
                "expirationMargin": 300000,
                "choiceOfPlace": true,
                "allowMoreThanOneBooking": false,
                "maximumAdvance": 90,
                "shifts": [
                    {
                        "id": "81667bfc-697f-458d-a7dc-50f08aa920b7",
                        "dinningAreaRuleId": "758a81f3-f171-404b-b48c-c922828aed49",
                        "startMs": 50400000,
                        "endMs": 54000000
                    },
                    {
                        "id": "9f30d5ac-1d49-4789-b35d-c67f44ab529c",
                        "dinningAreaRuleId": "758a81f3-f171-404b-b48c-c922828aed49",
                        "startMs": 54000000,
                        "endMs": 57600000
                    },
                    {
                        "id": "e5e5db75-be33-4d27-b36b-48b3a32fa731",
                        "dinningAreaRuleId": "758a81f3-f171-404b-b48c-c922828aed49",
                        "startMs": 57600000,
                        "endMs": 61200000
                    },
                    {
                        "id": "f8876802-45d6-4b2c-8057-c74311782440",
                        "dinningAreaRuleId": "758a81f3-f171-404b-b48c-c922828aed49",
                        "startMs": 46800000,
                        "endMs": 50400000
                    }
                ]
            },
            "subcategories": [
                {
                    "id": "072ac366-1c4f-4995-af07-1a111f8fcc12",
                    "name": "Sala de reuniones",
                    "category": "SPACE",
                    "simultaneousBookingsType": "SAME_CATEGORY_DIFFERENT_SUBCATEGORY",
                    "organization": {
                        "id": "8aee218a-fce2-4900-9410-00f485a2729e"
                    },
                    "features": [
                        {
                            "id": "160dd09e-cc40-41d2-a271-c7d2c1771de3",
                            "name": "Videoconferencia",
                            "organization": {
                                "id": "8aee218a-fce2-4900-9410-00f485a2729e"
                            }
                        },
                        {
                            "id": "2c17a0c5-52c9-454b-838f-588901e7edf8",
                            "name": "Proyector",
                            "organization": {
                                "id": "8aee218a-fce2-4900-9410-00f485a2729e"
                            }
                        }
                    ],
                    "deleteHistorial": false,
                    "hideBookings": false,
                    "canBeSearched": true,
                    "shifts": false,
                    "priority": 1
                },
                {
                    "id": "6e0a5df1-2de7-40f3-8590-2f8e7bc45ef8",
                    "name": "Plaza de parking",
                    "category": "PARKING",
                    "simultaneousBookingsType": "ONLY_BETWEEN_CATEGORIES",
                    "organization": {
                        "id": "8aee218a-fce2-4900-9410-00f485a2729e"
                    },
                    "features": [],
                    "deleteHistorial": false,
                    "hideBookings": false,
                    "canBeSearched": true,
                    "shifts": false,
                    "priority": 1
                },
                {
                    "id": "db5d3245-1df2-42e2-9c6e-51bfadba948b",
                    "name": "Puesto de trabajo",
                    "category": "WORKSTATION",
                    "simultaneousBookingsType": "SAME_CATEGORY_DIFFERENT_SUBCATEGORY",
                    "organization": {
                        "id": "8aee218a-fce2-4900-9410-00f485a2729e"
                    },
                    "features": [
                        {
                            "id": "20fd2891-5e09-4674-aee0-6e59324037e7",
                            "name": "Monitor Grande",
                            "organization": {
                                "id": "8aee218a-fce2-4900-9410-00f485a2729e"
                            }
                        }
                    ],
                    "deleteHistorial": false,
                    "hideBookings": false,
                    "canBeSearched": true,
                    "shifts": false,
                    "priority": 1
                }
            ]
        }
    ],
    "theme": {
        "id": "edfb2873-1994-4cc8-9357-67db5733082d",
        "organization": {
            "id": "8aee218a-fce2-4900-9410-00f485a2729e"
        }
    },
    "dictionaries": [
        {
            "organization": {
                "id": "8aee218a-fce2-4900-9410-00f485a2729e"
            },
            "dictionary": "https://develop.bookkercorp.com/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/dictionaries/f9cf13f49be54f02a54e01483d612d7b.xml"
        }
    ],
    "organizationHasAllDayWorkstations": false
}