Le service Reservation expose toutes les opérations disponibles autour de la réservation des différents composants.
Réservation de composant
# <CORE_HOST> URL de base de FlowerDocs Core
# <TOKEN> jeton d'authentification
curl -X POST "<CORE_HOST>/rest/reservation/reserve" \
-H "token: <TOKEN>" \
-H "Content-Type: application/json" \
-d '[
{
"category": "DOCUMENT",
"id": "componentId"
}
]'
Déblocage de composant
# <CORE_HOST> URL de base de FlowerDocs Core
# <TOKEN> jeton d'authentification
curl -X POST "<CORE_HOST>/rest/reservation/release" \
-H "token: <TOKEN>" \
-H "Content-Type: application/json" \
-d '[
{
"category": "DOCUMENT",
"id": "componentId"
}
]'
Récupération des réservations
# <CORE_HOST> URL de base de FlowerDocs Core
# <TOKEN> jeton d'authentification
curl -X POST "<CORE_HOST>/rest/reservation" \
-H "token: <TOKEN>" \
-H "Content-Type: application/json" \
-d '[
{
"category": "DOCUMENT",
"id": "componentId"
}
]'