Skip to main content

Facilități salon

Facilitățile salonului (WiFi, parcare, plată cu cardul, etc.). GET — public, POST/DELETE — doar proprietarul.


Listă facilități

GET /api/v1/salons/:id/features

Răspuns 200

{
"success": true,
"status": "200",
"message": "Features retrieved successfully",
"errors": null,
"data": [
{
"id": "uuid",
"feature_name": "wifi",
"feature_value": "true"
},
{
"id": "uuid",
"feature_name": "parking",
"feature_value": "free"
}
]
}

Adaugă facilitate

POST /api/v1/salons/:id/features

Necesită autentificare. Doar proprietarul salonului.

Cerere

{
"feature": {
"feature_name": "wifi",
"feature_value": "true"
}
}

Răspuns 201

{
"success": true,
"status": "201",
"message": "Feature added successfully",
"errors": null,
"data": {
"id": "uuid",
"feature_name": "wifi",
"feature_value": "true"
}
}

Elimină facilitate

DELETE /api/v1/salons/:id/features/:fid

Necesită autentificare. Doar proprietarul salonului.

Răspuns 200

{
"success": true,
"status": "200",
"message": "Feature removed successfully",
"errors": null,
"data": null
}