oq-engine-server: Implement 'list calc results' views

Bug #1205275 reported by Lars Butler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake Engine
Fix Released
High
Lars Butler

Bug Description

URL:
  /vX/calc/hazard|risk/:calc_id/results
Response:
  List of {id, name, type, url} objects, as JSON.
  Example:
    [{'id': 1, 'name': 'mean curves PGA', 'type': 'hazard_curve', 'url': 'http://www.openquake.org/api/vX/calc/hazard/result/1'}, {'id': 2, 'name': 'mean curves SA(0.1)', 'type': 'hazard_curve', 'url': 'http://www.openquake.org/api/vX/calc/hazard/result/2'}, {'id': 3, 'name': 'mean curves SA(0.2)', 'type': 'hazard_curve', 'url': 'http://www.openquake.org/api/vX/calc/hazard/result/3'}]

  The urls in the response can be used to stream the result as XML/GeoJSON.

Open issue: Since some results (at the time of this writing, hazard_maps and loss_maps only) are available in XML or GeoJSON. The actual result download API endpoint (http://www.openquake.org/api/vX/calc/hazard/result/3) may require an 'export_type' parameter or something.

description: updated
description: updated
Changed in oq-engine:
assignee: nobody → Lars Butler (lars-butler)
status: New → In Progress
importance: Undecided → High
Revision history for this message
Lars Butler (lars-butler) wrote :
Changed in oq-engine:
status: In Progress → Fix Committed
Changed in oq-engine:
status: Fix Committed → Fix Released
milestone: none → 1.2.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.