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 |
Vérifie une autorisation SenSaaS pour l'utilisateur sur un dossier. |
GET |
/v2/sage/dossiers |
Dossiers accessibles à l'utilisateur connecté (paramètres, devises, statuts…). |
GET |
/v2/sage/gaps/{dossier}/{table}/{colonne} |
Trous de numérotation d'une colonne (modifiés depuis "from", par défaut 2000-01-01). |
POST |
/v2/sage/isrecordlock |
Teste si un enregistrement est verrouillé (dossier + table + cbMarq). |
GET |
/v2/sage/tables |
Tables SQL et nombre d'enregistrements, par dossier cible (targets). |
Détail
POST /v2/sage/autorisation
Vérifie une autorisation SenSaaS pour l'utilisateur sur un dossier.
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
Dossiers accessibles à l'utilisateur connecté (paramètres, devises, statuts…).
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}
Trous de numérotation d'une colonne (modifiés depuis "from", par défaut 2000-01-01).
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
Teste si un enregistrement est verrouillé (dossier + table + cbMarq).
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
Tables SQL et nombre d'enregistrements, par dossier cible (targets).
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) |
- |