download: POST requests must include Content-Type: application/json (#43)

* download: POST requests must include Content-Type: application/json

* whoops

* move content type header to intro

---------

Co-authored-by: Simon <simobilleter@gmail.com>
This commit is contained in:
erentar 2024-10-21 16:40:27 +02:00 committed by GitHub
parent 070c227c9d
commit 4866c12727
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,6 +11,9 @@ This page has a generic overview with how the Tube Archivist API functions. This
!!! note !!! note
Not all endpoints will return expected status codes for errors, e.g. sometimes you'll see an error **500 Server Error** even though it should be **400 Bad request**. If you encounter any such cases, [please fix them](https://github.com/tubearchivist/tubearchivist/blob/master/CONTRIBUTING.md#how-to-make-a-pull-request) as you find them, no need to clutter up the issue queue. Not all endpoints will return expected status codes for errors, e.g. sometimes you'll see an error **500 Server Error** even though it should be **400 Bad request**. If you encounter any such cases, [please fix them](https://github.com/tubearchivist/tubearchivist/blob/master/CONTRIBUTING.md#how-to-make-a-pull-request) as you find them, no need to clutter up the issue queue.
!!! note
If you are sending POST requests to the API, you'll have to specify the content type as json like so: `"Content-Type: application/json"`.
## Context ## Context
- All changes to the API are marked with a `[API]` keyword for easy searching, for example search for [commits](https://github.com/tubearchivist/tubearchivist/search?o=desc&q=%5Bapi%5D&s=committer-date&type=commits). You'll find the same in the [release notes](https://github.com/tubearchivist/tubearchivist/releases). - All changes to the API are marked with a `[API]` keyword for easy searching, for example search for [commits](https://github.com/tubearchivist/tubearchivist/search?o=desc&q=%5Bapi%5D&s=committer-date&type=commits). You'll find the same in the [release notes](https://github.com/tubearchivist/tubearchivist/releases).
- Check the commit history and release notes to see if a documented feature is already in your release. The documentation might be ahead of the regular release schedule. - Check the commit history and release notes to see if a documented feature is already in your release. The documentation might be ahead of the regular release schedule.