curl --request POST \
--url https://api.example.com/space/occupied \
--header 'Content-Type: application/json' \
--data '
{
"v_space": "<string>"
}
'{
"result": [
{
"ID_RESERVATION": "<string>",
"INIT_DATE": "<string>",
"END_DATE": "<string>"
}
]
}Retrieve all reservations for a specific space
curl --request POST \
--url https://api.example.com/space/occupied \
--header 'Content-Type: application/json' \
--data '
{
"v_space": "<string>"
}
'{
"result": [
{
"ID_RESERVATION": "<string>",
"INIT_DATE": "<string>",
"END_DATE": "<string>"
}
]
}"SALÓN SOCIAL"curl -X POST https://api.example.com/space/occupied \
-H "Content-Type: application/json" \
-d '{
"v_space": "SALÓN SOCIAL"
}'
{
"result": [
{
"ID_RESERVATION": "RE001",
"INIT_DATE": "2025-01-15T10:00:00.000Z",
"END_DATE": "2025-01-15T18:00:00.000Z"
},
{
"ID_RESERVATION": "RE002",
"INIT_DATE": "2025-01-20T14:00:00.000Z",
"END_DATE": "2025-01-20T22:00:00.000Z"
}
]
}
{
"result": "No hay reservas para este Espacio"
}
{
"message": "Error interno del servidor"
}