Page MenuHomeSoftware Heritage

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


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

jbertran created this task.Aug 22 2016, 3:55 PM
jbertran created this object in space S1 Public.
jbertran added a project: Web app.
olasd added a subscriber: olasd.Aug 22 2016, 4:00 PM

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)
ardumont claimed this task.Sep 2 2016, 3:17 PM