(Description du SW)
L'action pour la (description du SW) : integration_intervention
...
{ "action": "WEB_SERVICE_INFINITY", "access_token": "{{TOKEN}}", "param": "{'header':{'caller': 'infinity','callerVersion': '6.107029','languageCode': 'FR','userCode': 'X6','callDateTime': '2020-12-12 14:30:00.943'},'action':{'swinfinity': 'integration_intervention','parameters':{'withlog': '1','dos': '998','actiontyp': 'update'}},'data':{'intervention':{'INTERVENTION_CODE': 'testsiv0002', 'INTERVENTION_STATE': 'FORECASTED', 'PLANNED_START_DATE': '20210910120001', 'PLANNED_END_DATE': '20210911120000', 'PLANNED_DURATION': '60', 'REMAINING_DURATION': '30', 'ESTIMATED_DURATION': '100', 'EFFECTIVE_DURATION': '41'}}}" }
|
{ "action": "WEB_SERVICE_INFINITY", "access_token": "{{TOKEN}}", "param": "{'header':{'caller': 'infinity','callerVersion': '6.107029','languageCode': 'FR','userCode': 'X6','callDateTime': '2020-12-12 14:30:00.943'},'action':{'swinfinity': 'integration_intervention','parameters':{'withlog': '1','dos': '998','actiontyp': 'update'}},'data':{'intervention':{'DOCUMENT_TYPE': '2', 'RECORD_NUMBER': '118', 'INTERVENTION_STATE': 'CLOSED', 'PLANNED_START_DATE': '20210910120002', 'PLANNED_END_DATE': '20210911120000', 'PLANNED_DURATION': '60', 'REMAINING_DURATION': '31', 'ESTIMATED_DURATION': '100', 'EFFECTIVE_DURATION': '40'}}}" }
|
b. Vue générale de la chaine JSON en entrée
Le contrôle du retour se fait via la lecture du champ « resultcode » :
...
Nom de balise | Nom de champ | Version | Remarque |
---|---|---|---|
DOCUMENT_TYPE | PiTyp | 10.7 | Dossier achat-vente |
RECORD_NUMBER | EnrNo | Dossier comptable | |
INTERVENTION_CODE | InterCod |
| |
INTERVENTION_STATE | Etat | CLOSED=1,BILLED=2,TO_BE_BILLED=3,FORECASTED=4,PLANNED=5,READY_TO_PLAN=6,STARTED=7,TO_VALIDATE=8 | |
PLANNED_START_DATE | PrevDebDh | ||
PLANNED_END_DATE | PrevFinDh | ||
PLANNED_DURATION | DureePrev | ||
REMAINING_DURATION | DureePrevRest | ||
ESTIMATED_DURATION | DureeEsti | ||
EFFECTIVE_DURATION | DureeEff |
Exemple de corps
Bloc de code | ||
---|---|---|
| ||
'data': { 'entity':'ENT', 'key':{'TICOD':'C', 'PICOD':'2', 'PREFPINO':'', 'PINO':'10000029'}, 'filename':'commande10000029.pdf', 'filedata':'JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovUGFnZXMgMi' } |
Exemple complet flux JSON
Bloc de code | ||
---|---|---|
| ||
{ "action":"WEB_SERVICE_INFINITY", "access_token":"{{TOKEN}}", "param":" { 'action': {'swinfinity': 'associer_fichier'}, 'data': { 'entity':'ENT', 'key':{'TICOD':'C', 'PICOD':'2', 'PREFPINO':'', 'PINO':'10000029'}, 'filename':'commande10000029.pdf', 'filedata':'JVBERi0xLjQKJ' } }" } |
...