Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7066252
D2086.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D2086.id.diff
View Options
diff --git a/swh/web/api/views/origin.py b/swh/web/api/views/origin.py
--- a/swh/web/api/views/origin.py
+++ b/swh/web/api/views/origin.py
@@ -92,10 +92,13 @@
Get list of archived software origins.
- Origins are sorted by ids before returning them.
+ .. warning::
+
+ This endpoint used to provide an `origin_from` query parameter,
+ and guarantee an order on results. This is no longer true,
+ and only the Link header should be used for paginating through
+ results.
- :query int origin_from: The first origin id that will be included
- in returned results (default to 1)
:query int origin_count: The maximum number of origins to return
(default to 100, can not exceed 10000)
@@ -113,7 +116,7 @@
.. parsed-literal::
- :swh_web_api:`origins?origin_from=50000&origin_count=500`
+ :swh_web_api:`origins?origin_count=500`
"""
origin_from = int(request.query_params.get('origin_from', '1'))
origin_count = int(request.query_params.get('origin_count', '100'))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Nov 5 2024, 4:08 AM (8 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3223894
Attached To
D2086: Deprecate the origin_from query parameter of api_origins.
Event Timeline
Log In to Comment