MTES-MCT / MTES-MCT/Docurba

Communes et collectivites : remplacer les appels à Nuxt3

Open
#2,139 1 comment 0 reactions 1 assignee View on GitHub

@celine-m-s is already working on this.

Since Jul 3, 2026.

  • #2213 by @celine-m-s — merged
Dominant language
HTML
Stars
10
Forks
9
Avg merge
1d 14h
Merged PRs (30d)
34

Description

Les remplacer par les API Django correspondantes et les faire évoluer au besoin.

Endpoint /api/geo/search/collectivites

populate=true renvoie les collectivités membres (à confirmer par la pratique).

    const collectivites = await this.$nuxt3api(`/api/geo/search/collectivites?code=${this.$route.params.collectiviteId}&populate=true`)
  • /pages/ddt/_departement/collectivites/_collectiviteId/procedure/add.vue
    const collectivites = await this.$nuxt3api(`/api/geo/search/collectivites?code=${this.$route.params.collectiviteId}&populate=true`)
  • /pages/ddt/_departement/procedures/choix-collectivite.vue
    this.collectivites = await this.$nuxt3api(`/api/geo/search/collectivites?departementCode=${this.$route.params.departement}`)

Endpoint /api/geo/collectivites

    const collectivites = await this.$nuxt3api(`/api/geo/collectivites?departementCode=${this.$route.params.departement}`)
  • pages/ddt/_departement/collectivites/index.vue
    const collectivites = await this.$nuxt3api(`/api/geo/collectivites?departementCode=${this.$route.params.departement}`)

  • pages/ddt/_departement/collectivites/collectiviteId/epci.vue
      const collectivites = await this.$nuxt3api(`/api/geo/collectivites?code=${this.$route.params.collectiviteId}`)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.