Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
    • Getting started
    • Introduction video
      Welcome to Accure Project Management System
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?
      Create a new account

Side Menu

  • Overview
  • Documents
  • Impulse DW
    Impulse DW
  • Inset BI
    Inset BI
  • Momentum User Guide
    Momentum User Guide
  • Wiki
    Wiki

Content

You are here:
  1. Impulse DW
  2. 5. Impulse DW Restful API
  3. 5.2 API Reference

5.2 API Reference

  • More
    • Print
    • Table of contents

Use Impulse DW Restful APIs to access data available in the data warehouse. The following section provides the service, request and response specification.

Operation Request Parameters Response Response
/v1/sql/result

Request header

Authorization: Token <your api token>
JSON formatted request body

{

"sql":"Your SQL statement",

"start_index": [optional],

"end_index":[optional],

"row_limit":[optional, default=100],

"result_format":[optional, supported formats: default=json, csv, html]

}

Query result in the format specified.

Exceptions:

{

"result":"No result fetched",

"exception":<Exception message describing the reason>"

}

Examples:

Example1: curl -X POST https://impulsedw.accure.ai/v1/sql/result -H 'Authorization: Token 1234567890987654321' -d '{"sql":"select * from \"tablename\""}'

  • The above example will return 100  rows in JSON format

Example 2: curl -X POST https://impulsedw.accure.ai/v1/sql/result -H 'Authorization: Token 1234567890987654321' -d '{"sql":"select * from \"tablename\", "row_limit":1000, "result_format":"csv"}'

  • This will return 1000 rows in csv format

Example 3: curl -X POST https://impulsedw.accure.ai/v1/sql/result -H 'Authorization: Token 1234567890987654321' -d '{"sql":"select * from \"tablename\", "start_index":100, "row_limit":1000, "result_format":"csv"}'

  • This will return 1000 rows with off set = 100, in csv format

Note: Your URL may be different from the URL used in this document. You will need to use the URL for your deployment.

Loading...