Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faire un tableau unique dans l’API pour les responsables légaux de la donnée #4276

Open
vdegove opened this issue Oct 28, 2024 · 2 comments

Comments

@vdegove
Copy link
Contributor

vdegove commented Oct 28, 2024

  • Créer un tableau unique avec les types
  • Mettre des identifiants
@vdegove
Copy link
Contributor Author

vdegove commented Oct 28, 2024

Voir commentaire ici #4230 (comment)

@AurelienC
Copy link

L'idée serait de passer de :

"legal_owners": {
    "aoms": [
      {
        "name": "CA du Bocage Bressuirais",
        "siren": "200040244"
      },
      {
        "name": "CA du Grand Guéret",
        "siren": "200034825"
      }
    ],
    "company": null,
    "regions": [
      {
        "insee": "75",
        "name": "Nouvelle-Aquitaine"
      }
    ]

à :

"legal_owners": [
      {
        "id": 53,
        "type": "aom"
        "name": "CA du Bocage Bressuirais",
        "siren": "200040244"
      },
      {
        "id": 54,
        "type": "aom",
        "name": "CA du Grand Guéret",
        "siren": "200034825"
      },
      {
        "id":null,
        "type": "company",
        "siren": "123456789",
      },
      {
        "id":9,
        "type":"region",
        "insee": "75",
        "name": "Nouvelle-Aquitaine"
      }
    ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants