Still on the road to T2342, I thought removing ambiguities in current browse URL scheme
was a prerequisite to ensure all archive objects can be correctly browsed and referenced
with updated SWHIDs.
So disambiguate and/or deprecate the following browse URLs:
- `GET /browse/origin/(origin_url)/content/(path)/`
- `GET /browse/origin/(origin_url)/directory/(path)/`
- `GET /browse/origin/(origin_url)/visit/(timestamp)/branches/`
- `GET /browse/origin/(origin_url)/visit/(timestamp)/content/(path)/`
- `GET /browse/origin/(origin_url)/visit/(timestamp)/directory/(path)/`
- `GET /browse/origin/(origin_url)/visit/(timestamp)/log/`
- `GET /browse/origin/(origin_url)/visit/(timestamp)/releases/`
- `GET /browse/snapshot/(snapshot_id)/content/(path)/`
- `GET /browse/snapshot/(snapshot_id)/directory/(path)/`
Replace their use by providing timestamp and path as query parameters to these endpoints
for consistency:
- `GET /browse/origin/(origin_url)/content/`
- `GET /browse/origin/(origin_url)/directory/`
- `GET /browse/origin/(origin_url)/log/`
- `GET /browse/origin/(origin_url)/branches/`
- `GET /browse/origin/(origin_url)/releases/`
- `GET /browse/snapshot/(snapshot_id)/content/`
- `GET /browse/snapshot/(snapshot_id)/directory/`
Endpoints documentation have also been updated to reflect these changes.
Sorry for the huge diff but I did not have a choice to process all URLs in one batch.
Related to T2135
Closes T2115