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

[Schema Inaccuracy] Get Octocat Accept: application/octocat-stream #1053

Open
SebastiaanLubbers opened this issue Apr 13, 2022 · 1 comment

Comments

@SebastiaanLubbers
Copy link

Schema Inaccuracy

GET https://api.github.com/octocat?s=Hello%20World
Accept: application/octocat-stream

Expected

               MMMMMMMMMMMMMMMMMMM
               MMMMMMMMMMMMMMMMMMM      _____________
              MMMMMMMMMMMMMMMMMMMMM    |             |
             MMMMMMMMMMMMMMMMMMMMMMM   | Hello World |
            MMMMMMMMMMMMMMMMMMMMMMMM   |_   _________|
            MMMM::- -:::::::- -::MMMM    |/
             MM~:~ 00~:::::~ 00~:~MM
        .. MMMMM::.00:::+:::.00::MMMMM ..
              .MM::::: ._. :::::MM.
                 MMMM;:::::;MMMM
          -MM        MMMMMMM
          ^  M+     MMMMMMMMM
              MMMMMMM MM MM MM
                   MM MM MM MM
                   MM MM MM MM
                .~~MM~MM~MM~MM~~.
             ~~~~MM:~MM~~~MM~:MM~~~~
            ~~~~~~==~==~~~==~==~~~~~~
             ~~~~~~==~==~==~==~~~~~~
                 :~==~==~==~==~~

Actual

{
  "message": "Unsupported 'Accept' header: 'application/octocat-stream'. Must accept 'application/json'.",
  "documentation_url": "https://docs.github.com/v3/media"
}

Reproduction Steps

curl GET https://api.github.com/octocat?s=Hello%20World -H "Accept: application/octocat-stream"

@ahoglund
Copy link
Contributor

@SebastiaanLubbers - You found our easter egg /octocat endpoint 🎉. This endpoint is (purposely) not documented, but interesting that it doesn't allow for the octocat-stream Accept header. I'll raise an issue for this internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants