dnum-mi / referentiel-applications

MIT License
2 stars 0 forks source link

Migration des données CANEL - 1 - Préparation #13

Closed CMentG closed 2 months ago

CMentG commented 3 months ago

Valider le périmètre API pour la migration, (test endToEnd à décomposer en issues) :

Challenger la pertinence des information qui ne seront pas actualisée (faire plutôt un lien vers Canel V1 ou ?) https://github.com/dnum-mi/referentiel-applications/issues/5#issue-2432268876

Générer pour une liste de curl pour inserer les application stocker dans CANEL https://canel2-1-backend.dev.numerique-interieur.com/api POST + PUT /api/applications

curl -X 'POST' \
  'https://canel2-1-backend.dev.numerique-interieur.com/api/applications' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer  X ' \
  -H 'Content-Type: application/json' \
  -d '{
  "longname": "string",
  "description": "string",
  "typeApplication": "SVBUS",
  "codeApplication": [
    {
      "typeCode": "string",
      "codeCourt": "string",
      "longcode": "string",
      "comments": "string"
    }
  ],
  "sensibilite": "S1",
  "statut": "BLD",
  "parent": "string",
  "organisation": "string",
  "organisationid": "string",
  "acteurRoles": [
    {
      "acteur": {
        "name": "string",
        "email": "string"
      },
      "organisation": {
        "label": "string",
        "description": "string",
        "organisationcode": "strin"
      },
      "role": "string"
    }
  ],
  "instances": [
    {
      "comments": "string",
      "role": "string",
      "statut": "string",
      "tenant": "string",
      "fip": "string",
      "url": "string",
      "deploymentdate": {},
      "environment": {
        "environmentid": "string",
        "label": "string"
      }
    }
  ],
  "conformite": [
    {
      "comments": "string",
      "compliancetype": "string",
      "compliancelevel": "Dispens_e",
      "decisiondate": "2024-08-01T13:10:15.707Z",
      "validitydate": "2024-08-01T13:10:15.707Z",
      "auditdate": "2024-08-01T13:10:15.707Z",
      "description": "string"
    }
  ]
}'