Skip to content

Commit

Permalink
Create SpectaQL configs for both admin and user schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Premwoik committed Jul 8, 2022
1 parent 6e25fc8 commit fbaf87b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
# Config file needed to generate static documentation from GraphQL using SpectaQL

spectaql:
themeDir: default

introspection:
url: http://localhost:5551/api/graphql
schemaFile:
- priv/graphql/schemas/admin/**/*.gql
- priv/graphql/schemas/global/**/*.gql

info:
title: MongooseIM GraphQL API Reference
description: A static documentation of the MongooseIM GraphQL API
description: A static documentation of the MongooseIM GraphQL Admin API
contact:
name: API Support
url: https://github.com/esl/MongooseIM
email: mongoose-im@erlang-solutions.com
license:
name: GPL-2.0
url: https://github.com/esl/MongooseIM/blob/master/COPYING
url: https://github.com/esl/MongooseIM/blob/master/COPYIN

servers:
- url: http://localhost:5551/api/graphql
Expand Down
25 changes: 25 additions & 0 deletions doc/graphql-api/User-GraphQL_spectaql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Config file needed to generate static documentation from GraphQL using SpectaQL

spectaql:
themeDir: default

introspection:
schemaFile:
- priv/graphql/schemas/user/**/*.gql
- priv/graphql/schemas/global/**/*.gql

info:
title: MongooseIM GraphQL API Reference
description: A static documentation of the MongooseIM GraphQL User API
contact:
name: API Support
url: https://github.com/esl/MongooseIM
email: mongoose-im@erlang-solutions.com
license:
name: GPL-2.0
url: https://github.com/esl/MongooseIM/blob/master/COPYIN

servers:
- url: http://localhost:5561/api/graphql
description: Dev mim1
production: false

0 comments on commit fbaf87b

Please sign in to comment.