forked from HSLdevcom/OpenTripPlanner
-
Notifications
You must be signed in to change notification settings - Fork 10
/
magidoc.mjs
52 lines (45 loc) · 1.56 KB
/
magidoc.mjs
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
export default {
introspection: {
type: 'sdl',
paths: ['application/src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls'],
},
website: {
template: 'carbon-multi-page',
output: 'target/magidoc/api/graphql-gtfs/',
options: {
siteRoot: '/api/dev-2.x/graphql-gtfs',
appLogo: 'https://docs.opentripplanner.org/en/dev-2.x/images/otp-logo.svg',
customStyles: ['https://docs.opentripplanner.org/en/dev-2.x/css/magidoc-overrides.css'],
pages: [{
title: 'Introduction',
content: `
# OTP GTFS GraphQL API documentation
This is the static documentation of the OTP GraphQL GTFS API.
The GraphQL endpoint of your instance, which you should point your tooling to, is
\`http://localhost:8080/otp/gtfs/v1\`
Please also check out the interactive API explorer built into every instance and available
at http://localhost:8080/graphiql
![GraphiQL screenshot](https://docs.opentripplanner.org/en/dev-2.x/images/graphiql.png)
## Configuration
This API is activated by default.
To learn how to deactivate it, read the
[documentation](https://docs.opentripplanner.org/en/dev-2.x/apis/GTFS-GraphQL-API/).
`,
}],
appTitle: 'OTP GTFS GraphQL API',
queryGenerationFactories: {
'Polyline': '<>',
'GeoJson': '<>',
'OffsetDateTime': '2024-02-05T18:04:23+01:00',
'LocalDate': '2024-05-24',
'Duration': 'PT10M',
'CoordinateValue': 19.24,
'Reluctance': 3.1,
'Speed': 3.4,
'Cost': 100,
'Ratio': 0.25,
'Locale': 'en'
},
}
},
}