Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose openapi and graphql inside service config #783

Merged
merged 11 commits into from Mar 16, 2023

Conversation

mcollina
Copy link
Member

@mcollina mcollina commented Mar 15, 2023

This PR does three things:

  • rename the core config of Platformatic DB into db
  • bump the config format to v0.18.0-dev
  • adds service.openapi and service.graphql configuration option to Platformatic Service; those are disabled by default.

Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
@mcollina
Copy link
Member Author

@rozzilla you asked in discord how to add OpenAPI & GraphQL to a Platformatic Service. Here it is.

packages/metaconfig/versions/0.17.x.js Outdated Show resolved Hide resolved
packages/metaconfig/versions/0.17.x.js Outdated Show resolved Hide resolved
packages/service/test/graphql.test.js Outdated Show resolved Hide resolved
Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
@mcollina mcollina marked this pull request as ready for review March 16, 2023 09:00
Signed-off-by: Matteo Collina <hello@matteocollina.com>
Copy link
Contributor

@marcopiraccini marcopiraccini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is quite a breaking change :).
LGTM, though.

@mcollina mcollina merged commit cdb0baa into main Mar 16, 2023
51 checks passed
@mcollina mcollina deleted the swagger-graphql-in-service branch March 16, 2023 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants