Page MenuHomeSoftware Heritage

Make the origin visit '/api/1/stat/visits/<int:origin_id>/' consistent with other api endpoints
Closed, MigratedEdits Locked

Description

More work needs to be done on that endpoint (which I created based on my needs for the calendar UI). Namely:

  • Change the route to /api/1/origin/<int>/visits/ for consistency
  • Return more interesting and complete data than just the bare timestamps of the visits
  • Add the origin visit status information to what we display, and display that information on the graph, when that information becomes available via the storage API (see T533)

Event Timeline

More suggestions:

  • add start date/end date filters
  • add a possibility to limit the number of visits returned (in the forseeable future, this wouldn't be hit anyway)
ardumont renamed this task from Review the origin visit endpoint to Make the origin visit '/api/1/stat/visits/<int:origin_id>/' consistent with other api endpoints.Sep 2 2016, 2:55 PM
ardumont updated the task description. (Show Details)