Aller au contenu

Sage.Infrastructure

En bref

5 opérations sur 5 chemins. Préfixe /v2. Authentification JWT (voir Démarrer).

Opérations

Méthode Chemin Rôle
POST /v2/sage/autorisation Appel POST sur sage/autorisation
GET /v2/sage/dossiers Appel GET sur sage/dossiers
GET /v2/sage/gaps/{dossier}/{table}/{colonne} Appel GET sur sage/gaps
POST /v2/sage/isrecordlock Appel POST sur sage/isrecordlock
GET /v2/sage/tables Appel GET sur sage/tables

Rôle déduit

La spécification ne porte ni summary ni description d'opération : la colonne Rôle est déduite mécaniquement de la méthode HTTP et du chemin.

Détail

POST /v2/sage/autorisation

Appel POST sur sage/autorisation.

Corps de la requête (application/json)

Schéma AutorisationController — 3 propriétés (détail : Schémas).

Réponses

Code Description Schéma de data
200 OK
401 Unauthorized
403 Forbidden

Exemple

curl -s -X POST "https://<votre-connecteur>/v2/sage/autorisation" \
  -H "Authorization: Bearer <jeton>" \
  -H "Content-Type: application/json" \
  -d '{"type": "…", "mode": "…", "dossiers": []}'

GET /v2/sage/dossiers

Appel GET sur sage/dossiers.

Réponses

Code Description Schéma de data
200 OK
401 Unauthorized
403 Forbidden

Exemple

curl -s -X GET "https://<votre-connecteur>/v2/sage/dossiers?targets=DEMO&limit=50" \
  -H "Authorization: Bearer <jeton>" \
  -H "Accept: application/json"

GET /v2/sage/gaps/{dossier}/{table}/{colonne}

Appel GET sur sage/gaps.

Paramètres

Nom Emplacement Type Obligatoire Description
dossier path string oui
table path string oui
colonne path string oui
from query string (date-time) non

Réponses

Code Description Schéma de data
200 OK
401 Unauthorized
403 Forbidden

Exemple

curl -s -X GET "https://<votre-connecteur>/v2/sage/gaps/<dossier>/<table>/<colonne>?from=<from>" \
  -H "Authorization: Bearer <jeton>" \
  -H "Accept: application/json"

POST /v2/sage/isrecordlock

Appel POST sur sage/isrecordlock.

Corps de la requête (application/json)

Schéma RecordLockDto — 3 propriétés (détail : Schémas).

Réponses

Code Description Schéma de data
200 OK
401 Unauthorized
403 Forbidden

Exemple

curl -s -X POST "https://<votre-connecteur>/v2/sage/isrecordlock" \
  -H "Authorization: Bearer <jeton>" \
  -H "Content-Type: application/json" \
  -d '{"dossier": "…", "table": "…", "cbMarq": 0}'

GET /v2/sage/tables

Appel GET sur sage/tables.

Réponses

Code Description Schéma de data
200 OK
401 Unauthorized
403 Forbidden

Exemple

curl -s -X GET "https://<votre-connecteur>/v2/sage/tables?targets=DEMO&limit=50" \
  -H "Authorization: Bearer <jeton>" \
  -H "Accept: application/json"

Schémas

Schémas résolus à un niveau : les propriétés qui référencent un autre schéma sont citées par leur nom, sans être dépliées.

AutorisationController

AutorisationController — 3 propriétés
Propriété Type Notes
type string nullable, ≤ 50 car.
mode string nullable, ≤ 50 car.
dossiers tableau de string nullable

RecordLockDto

RecordLockDto — 3 propriétés
Propriété Type Notes
dossier string nullable
table string nullable
cbMarq integer (int32)

Voir aussi