Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Latest commit

 

History

History
117 lines (106 loc) · 1.84 KB

README-QUERIES.md

File metadata and controls

117 lines (106 loc) · 1.84 KB

GraphQL Queries

https://www.demarches-simplifiees.fr/graphql

Auth

In Header :

{
  "Authorization": "Bearer XXX",
}

Variable

 {
  "demarcheNumber": 52209
 }

Get all instructor groups

query getGroupeInstructeurs($demarcheNumber: Int!) {
  demarche(number: $demarcheNumber) {
    id
    number
    title
    groupeInstructeurs {
      id
      number
      label
      instructeurs {
        id
        email
      }
    }
  }
}

Get all folders

query getGroupeDossier($demarcheNumber: Int!) {
      demarche (number: $demarcheNumber) {
        id
        dossiers {
          pageInfo {
            hasNextPage
            endCursor
          }
          nodes {
              archived
              number
              groupeInstructeur {
                id
                label
              }
              state
              champs {
                id
                label
                stringValue
              }
              usager {
                email
              }
              demandeur {
                ... on PersonnePhysique {
                  civilite
                  nom
                  prenom
                }
              }
          }
        }
      }
    }
query getGroupeDossiersWithAnnotations($demarcheNumber: Int!) {
  demarche (number: $demarcheNumber) {
     id
        dossiers {
          pageInfo {
            hasNextPage
            endCursor
          }
          nodes {
            id
            champs {
              id
              label
              stringValue
            }
            annotations {
              id
              label
              stringValue
            }
            demandeur {
              ... on PersonnePhysique {
                nom
                prenom
              }
            }
          }
        }
      }
    }
  }
}