Bug 1480280

Summary: [RFE] Exporting report results in CSV using API
Product: Red Hat CloudForms Management Engine Reporter: Mikel Olasagasti <molasaga>
Component: ReportingAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED WONTFIX QA Contact: Dave Johnson <dajohnso>
Severity: low Docs Contact:
Priority: medium    
Version: 5.8.0CC: abellott, fdewaley, jhardy, lavenel, obarenbo, simaishi, sychen
Target Milestone: GAKeywords: FutureFeature
Target Release: 5.9.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-22 15:53:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1480288, 1511957    

Description Mikel Olasagasti 2017-08-10 15:09:11 UTC
Description of problem:

It is not possible to export a report via API in CSV format


Version-Release number of selected component (if applicable): 

Cloudforms-4.5.1

How reproducible:

Always


Steps to Reproduce:
1. GET /api/results/27
2. json output is given

Actual results:

No format option available for API.

Expected results:

Format parameter available to select between JSON and CSV.

Additional info:

Using the UI reports can be exported as JSON, CSV and PDF. API doesn't have export format option and directly exports as JSON.