capture API version in routes

Needed so the client can send it.
This commit is contained in:
Joey Hess 2024-07-09 10:12:36 -04:00
parent 751b8e0baf
commit a3dd8b4bcb
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 127 additions and 73 deletions

View file

@ -38,8 +38,8 @@ to P2P protocol versions.
The protocol version comes before the request. Eg: `/git-annex/v3/put`
If the server does not support a particular protocol version, the
request will fail with a 404, and the client should fall back to an earlier
protocol version.
request will fail with a 400 Bad Request, and the client should fall
back to an earlier protocol version.
## common request parameters