You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: the authentication example returns 405, and returns it for a bad key too #39
That path only has post in openapi/calle.openapi.yaml, so the request comes back:
HTTP 405
Method Not Allowed
I ran it again with a key I made up on the spot. Also 405, byte for byte the same.
So the one example a developer reaches for on their first afternoon does not work, and worse, it cannot tell a working key from a broken one. Both answers are identical. Someone whose key really is wrong will read that 405, assume the key is fine and go hunting somewhere else.
It is the first page in the docs where anything is actually run, which is a rough place to lose people.
Suggested improvement
Swap it for a request that reaches an endpoint the key can be checked against. A read of a call id that cannot exist works nicely, because a 404 back is proof the key was accepted and nothing was created:
Activity