Sage¶
En bref
5 opérations sur 5 chemins. Routes héritées, sans préfixe /v2. Authentification JWT (voir Démarrer).
Routes héritées
Les chemins de ce groupe ne portent pas le préfixe /v2 : ils proviennent de la surface historique du connecteur, publiée dans la même spécification. Pour une intégration neuve, préférez l'équivalent /v2 (voir Conventions).
Opérations¶
| Méthode | Chemin | Rôle |
|---|---|---|
POST |
/Sage/autorisation |
Appel POST sur Sage/autorisation |
GET |
/Sage/dossiers |
Appel GET sur Sage/dossiers |
GET |
/Sage/gaps/{dossier}/{table}/{colonne} |
Appel GET sur Sage/gaps |
POST |
/Sage/isrecordlock |
Appel POST sur Sage/isrecordlock |
GET |
/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 /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>/Sage/autorisation" \
-H "Authorization: Bearer <jeton>" \
-H "Content-Type: application/json" \
-d '{"type": "…", "mode": "…", "dossiers": []}'
GET /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>/Sage/dossiers?targets=DEMO&limit=50" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
GET /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>/Sage/gaps/<dossier>/<table>/<colonne>?from=<from>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
POST /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>/Sage/isrecordlock" \
-H "Authorization: Bearer <jeton>" \
-H "Content-Type: application/json" \
-d '{"dossier": "…", "table": "…", "cbMarq": 0}'
GET /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>/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) |
— |