Simon Willison on Nostr: I still don't like Accept headers I just found out if you hit ...
I still don't like Accept headers
I just found out if you hit https://pypi.org/simple/pydantic/ with "Accept: application/vnd.pypi.simple.v1+json" you get back super-useful JSON about that package... but I can't link to a demo because I can't include the Accept header in a link!
Here's a Gist instead: https://gist.github.com/simonw/8cf8a850739e2865cf3b9a74e6461b28
I just found out if you hit https://pypi.org/simple/pydantic/ with "Accept: application/vnd.pypi.simple.v1+json" you get back super-useful JSON about that package... but I can't link to a demo because I can't include the Accept header in a link!
Here's a Gist instead: https://gist.github.com/simonw/8cf8a850739e2865cf3b9a74e6461b28