Medias.Medias¶
En bref
3 opérations sur 3 chemins. Préfixe /v2. Authentification JWT (voir Démarrer).
Opérations¶
| Méthode | Chemin | Rôle |
|---|---|---|
GET |
/v2/medias/article/{arRef}/{fichier} |
Appel GET sur medias/article |
GET |
/v2/medias/document/{doType}/{doPiece}/{fichier} |
Appel GET sur medias/document |
GET |
/v2/medias/tiers/{ctNum}/{fichier} |
Appel GET sur medias/tiers |
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¶
GET /v2/medias/article/{arRef}/{fichier}¶
Appel GET sur medias/article.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
arRef |
path | string |
oui | — |
fichier |
path | string |
oui | — |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | — |
401 |
Unauthorized | — |
403 |
Forbidden | — |
Exemple
curl -s -X GET "https://<votre-connecteur>/v2/medias/article/<arRef>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
GET /v2/medias/document/{doType}/{doPiece}/{fichier}¶
Appel GET sur medias/document.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
doType |
path | integer (int32) |
oui | — |
doPiece |
path | string |
oui | — |
fichier |
path | string |
oui | — |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | — |
401 |
Unauthorized | — |
403 |
Forbidden | — |
Exemple
curl -s -X GET "https://<votre-connecteur>/v2/medias/document/<doType>/<doPiece>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"
GET /v2/medias/tiers/{ctNum}/{fichier}¶
Appel GET sur medias/tiers.
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ctNum |
path | string |
oui | — |
fichier |
path | string |
oui | — |
Réponses
| Code | Description | Schéma de data |
|---|---|---|
200 |
OK | — |
401 |
Unauthorized | — |
403 |
Forbidden | — |
Exemple
curl -s -X GET "https://<votre-connecteur>/v2/medias/tiers/<ctNum>/<fichier>" \
-H "Authorization: Bearer <jeton>" \
-H "Accept: application/json"