-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathmagidoc.mjs
More file actions
56 lines (52 loc) · 1.89 KB
/
Copy pathmagidoc.mjs
File metadata and controls
56 lines (52 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
export default {
introspection: {
type: 'sdl',
paths: ['app/graphql/schema.graphql']
},
website: {
template: 'carbon-multi-page',
output: './public/graphql/schema',
options: {
appTitle: "Schema de l’API GraphQL de demarche.numerique.gouv.fr",
appLogo: 'https://demarche.numerique.gouv.fr/logo-icon.png',
siteRoot: '/graphql/schema',
queryGenerationFactories: {
ISO8601DateTime: new Date().toISOString(),
ISO8601Date: new Date().toISOString(),
BigInt: BigInt(Number.MAX_SAFE_INTEGER).toString()
},
externalLinks: [
{
href: 'https://demarche.numerique.gouv.fr',
label: 'demarche.numerique.gouv.fr',
position: 'header'
},
{
href: 'https://github.com/demarche-numerique/demarche.numerique.gouv.fr',
label: 'GitHub',
position: 'header',
kind: 'Github'
}
],
pages: [
{
title: 'Introduction',
content: [
{
title: 'Welcome',
content: `# Schema de l’API GraphQL de demarche.numerique.gouv.fr
L'API v2 suit le paradigme GraphQL. Si GraphQL est un lointain sujet pour vous, nous vous recommandons de prendre le temps de consulter les liens suivants :
* [Introduction aux concepts et raisons d’être de GraphQL](https://blog.octo.com/graphql-et-pourquoi-faire/) (en français)
* [Documentation officielle de la spécification GraphQL](https://graphql.org/) (en anglais)
## Point d’entrée et Schema GraphQL
* https://demarche.numerique.gouv.fr/api/v2/graphql
* Éditeur de requêtes en ligne : [https://demarche.numerique.gouv.fr/graphql](https://demarche.numerique.gouv.fr/graphql)
* [Schema GraphQL](https://github.com/demarche-numerique/demarche.numerique.gouv.fr/blob/main/app/graphql/schema.graphql)
`
}
]
}
]
}
}
};