curl --request GET \
--url https://api.example.com/space/get{
"500": {},
"result": [
{
"id_rate": 123,
"name": "<string>",
"descrip": "<string>",
"pax": 123,
"value4": 123,
"value8": 123,
"value_extra": 123
}
]
}Retrieve space information
curl --request GET \
--url https://api.example.com/space/get{
"500": {},
"result": [
{
"id_rate": 123,
"name": "<string>",
"descrip": "<string>",
"pax": 123,
"value4": 123,
"value8": 123,
"value_extra": 123
}
]
}id_rate on the client side, or use the list endpoint and find the desired space.id_rate to get a specific space.Show Space Object Properties
3"Salón Principal""Espacio amplio con sonido y sillas incluidas"8025000040000060000curl -X GET https://api.demet.com/space/get
{
"result": [
{
"id_rate": 3,
"name": "Salón Principal",
"descrip": "Espacio amplio con sonido y sillas incluidas",
"pax": 80,
"value4": 250000,
"value8": 400000,
"value_extra": 60000
}
]
}
id_rate:
const response = await fetch('https://api.demet.com/space/get');
const { result } = await response.json();
const space = result.find(s => s.id_rate === 3);