summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/WebService/Server/REST/Resources/BugUserLastVisit.pm9
-rw-r--r--docs/en/rst/api/core/v1/bug-user-last-visit.rst2
2 files changed, 10 insertions, 1 deletions
diff --git a/Bugzilla/WebService/Server/REST/Resources/BugUserLastVisit.pm b/Bugzilla/WebService/Server/REST/Resources/BugUserLastVisit.pm
index a434d4bef..12290e84e 100644
--- a/Bugzilla/WebService/Server/REST/Resources/BugUserLastVisit.pm
+++ b/Bugzilla/WebService/Server/REST/Resources/BugUserLastVisit.pm
@@ -32,6 +32,15 @@ sub _rest_resources {
},
},
},
+ # no bug-id
+ qr{^/bug_user_last_visit$}, {
+ GET => {
+ method => 'get',
+ },
+ POST => {
+ method => 'update',
+ },
+ },
];
}
diff --git a/docs/en/rst/api/core/v1/bug-user-last-visit.rst b/docs/en/rst/api/core/v1/bug-user-last-visit.rst
index 2c3782662..f98122097 100644
--- a/docs/en/rst/api/core/v1/bug-user-last-visit.rst
+++ b/docs/en/rst/api/core/v1/bug-user-last-visit.rst
@@ -82,7 +82,7 @@ To return more than one specific bug timestamps:
GET /rest/bug_user_last_visit/123?ids=234&ids=456
-To return just the most recent 20 timestamps:
+To return all the timestamps stored during the retention period:
.. code-block:: text