Skip to content

Allow costume accept headers for GraphQL Endpoint. #1001

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

Merged
merged 4 commits into from
Apr 30, 2021

Conversation

Necmttn
Copy link
Contributor

@Necmttn Necmttn commented Apr 29, 2021

Github has multiple different accept headers for different purposes. Currently, there's no easy way to add/remove the Accept header to the client.

ref: https://docs.github.com/en/graphql/overview/schema-previews

Github has multiple different accept headers for different purposes.  Currently, there's no easy way to add/remove the `Accept` header to the client. 

ref: https://docs.github.com/en/graphql/overview/schema-previews
Copy link
Collaborator

@acrobat acrobat left a comment

Choose a reason for hiding this comment

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

@Necmttn the change looks good! Can you just add an example (so users know this "feature" exists) to switch the accept header in the graphql docs? Thanks!

See: https://github.com/KnpLabs/php-github-api/blob/master/doc/graphql.md

@Necmttn
Copy link
Contributor Author

Necmttn commented Apr 29, 2021

@acrobat updated 🍻

Necmttn and others added 2 commits April 30, 2021 11:22
@acrobat acrobat merged commit 2e635fc into KnpLabs:master Apr 30, 2021
@acrobat
Copy link
Collaborator

acrobat commented Apr 30, 2021

Thanks @Necmttn! And congrats on your first contribution! 🎉

@Necmttn Necmttn deleted the patch-1 branch May 24, 2021 15:45
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.

3 participants