TEXT   20

bug user last visit

Guest on 12th July 2022 03:24:27 PM

  1. Bug User Last Visited
  2. *********************
  3.  
  4.  
  5. Update Last Visited
  6. ===================
  7.  
  8. Update the last-visited time for the specified bug and current user.
  9.  
  10. **Request**
  11.  
  12. To update the time for a single bug id:
  13.  
  14.    POST /rest/bug_user_last_visit/(id)
  15.  
  16. To update one or more bug ids at once:
  17.  
  18.    POST /rest/bug_user_last_visit
  19.  
  20.    {
  21.      "ids" : [35,36,37]
  22.    }
  23.  
  24. +---------+-------+--------------------------------+
  25. | name    | type  | description                    |
  26. +=========+=======+================================+
  27. | **id**  | int   | An integer bug id.             |
  28. +---------+-------+--------------------------------+
  29. | **ids** | array | One or more bug ids to update. |
  30. +---------+-------+--------------------------------+
  31.  
  32. **Response**
  33.  
  34.    [
  35.      {
  36.        "id" : 100,
  37.        "last_visit_ts" : "2014-10-16T17:38:24Z"
  38.      }
  39.    ]
  40.  
  41. An array of objects containing the items:
  42.  
  43. +---------------+----------+----------------------------------------------+
  44. | name          | type     | description                                  |
  45. +===============+==========+==============================================+
  46. | id            | int      | The bug id.                                  |
  47. +---------------+----------+----------------------------------------------+
  48. | last_visit_ts | datetime | The timestamp the user last visited the bug. |
  49. +---------------+----------+----------------------------------------------+
  50.  
  51.  
  52. Get Last Visited
  53. ================
  54.  
  55. **Request**
  56.  
  57. Get the last-visited timestamp for one or more specified bug ids or
  58. get a list of the last 20 visited bugs and their timestamps.
  59.  
  60. To return the last-visited timestamp for a single bug id:
  61.  
  62.    GET /rest/bug_user_last_visit/(id)
  63.  
  64. To return more than one specific bug timestamps:
  65.  
  66.    GET /rest/bug_user_last_visit/123?ids=234&ids=456
  67.  
  68. To return just the most recent 20 timestamps:
  69.  
  70.    GET /rest/bug_user_last_visit
  71.  
  72. +---------+-------+----------------------------------------------+
  73. | name    | type  | description                                  |
  74. +=========+=======+==============================================+
  75. | **id**  | int   | An integer bug id.                           |
  76. +---------+-------+----------------------------------------------+
  77. | **ids** | array | One or more optional bug ids to get.         |
  78. +---------+-------+----------------------------------------------+
  79.  
  80. **Response**
  81.  
  82.    [
  83.      {
  84.        "id" : 100,
  85.        "last_visit_ts" : "2014-10-16T17:38:24Z"
  86.      }
  87.    ]
  88.  
  89. An array of objects containing the following items:
  90.  
  91. +---------------+----------+----------------------------------------------+
  92. | name          | type     | description                                  |
  93. +===============+==========+==============================================+
  94. | id            | int      | The bug id.                                  |
  95. +---------------+----------+----------------------------------------------+
  96. | last_visit_ts | datetime | The timestamp the user last visited the bug. |
  97. +---------------+----------+----------------------------------------------+
  98.  
  99. ======================================================================
  100.  
  101. This documentation undoubtedly has bugs; if you find some, please file
  102. them here.

Raw Paste


Login or Register to edit or fork this paste. It's free.