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

Add openapi/graphql ignore for different entity actions #673

Open
ivan-tymoshenko opened this issue Feb 9, 2023 · 3 comments
Open

Add openapi/graphql ignore for different entity actions #673

ivan-tymoshenko opened this issue Feb 9, 2023 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ivan-tymoshenko
Copy link
Member

We want to be able to ignore some default rest endpoints and use custom ones.

app.register(require('@platformatic/sql-openapi'), {
  ignore: {
    categories: {
       fields: ['name'],
       methods: ['POST', 'PUT']
     }
  }
})
@ivan-tymoshenko ivan-tymoshenko added the enhancement New feature or request label Feb 9, 2023
@mcollina mcollina added the good first issue Good for newcomers label Feb 9, 2023
@simonplend
Copy link
Contributor

What effect would including fields: ['name'] have in the context of the example here?

@mcollina
Copy link
Member

We want to be able to ignore some fields, some routes and some resolvers. Have you got a more intuitive configuration example?

@ivan-tymoshenko
Copy link
Member Author

I don't think this format would work because of multiple GET routes:

  • GET /entities
  • GET /entities/:id
  • GET /entities/:id/relation

We should be able to ignore each of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants