Skip to content
Snippets Groups Projects
Commit 6945c4ef authored by Antoine Lambert's avatar Antoine Lambert
Browse files

browse: Disambiguate URLs related to origin / snapshot context browsing

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/

Update endpoints documentation to reflect these changes.

Closes T2115
Closes T2135
parent 6708b108
No related branches found
No related tags found
1 merge request!297browse: Disambiguate URLs related to origin / snapshot context
Showing
with 507 additions and 153 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment