Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

/api/reports/:id/filters

Lists filters and values in reports

Resource Information

Resource URL

https://service.belladati.com/api/reports/:id/filters

HTTP Method

GET

Request Parameters

id

Id of report

123

availableValues

(Optional) Name of filter can be passed here. Then it will return all possible values, that can be set for this filter

company

setFilters

(Optional) If availableValues is set, you can specify what filters should be set. This will return all possible values for additional filter connected to that filter.

Europe

limit

(Optional) Sets maximum count of retrieved availableValues. Default value=500, Recommended maximum=32000

2000

Response Structure

{

  "id" : 0,
  "filters" : [ ]
}

JSON response contains id element but the main element is array "filters" that contains multiple filters objects with following definition:

idReport identifier
typeType of filter
codeFilter code
nameDisplayed name of filter
attributeTo what attribute is filter connected to
display mode

Display mode used for filter

select typeType of select used for filter
autosubmitInformation if values are autosubmited
operatorRelation operator type
requiredFlags if filter is required

Sample Request / Response

Using curl:

curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/reports/123/filters

The JSON format response:


{

    "id": 123,

    "filters": [{

      {           "type": "FILTER",

            "code": "fiscalPeriod",

            "name": "Fiscal period",

            "attribute": "L_FISCAL_PERIOD",

            "displayMode": "DEFAULT",

            "selectType": "SELECT",

            "autosubmit": false,

            "operator": "IN",

            "required": true      

        }

    ]

}



Sv translation
languageja

/api/reports/:id/filters

レポートのフィルタと値を一覧表示

リソース情報

Resource URL

https://service.belladati.com/api/reports/:id/filters

HTTP Method

GET

リクエストパラメーター

id

Id of report

123

availableValues

(オプション) フィルタの名前をここに渡すことができます。このフィルタに設定可能なすべての値を返します。

company

setFilters

(オプション) availableValues が設定されている場合、設定すべきフィルタを指定することができます。これは、そのフィルタに接続されている追加のフィルタに可能なすべての値を返します。

Europe

レスポンス構造

{

  "id" : 0,
  "filters" : [ ]
}

JSONレスポンスにはid要素が含まれますが、主な要素は以下の定義を持つ複数のフィルターオブジェクトを含む配列 "filters "です。

idレポート識別子
typeフィルターの種類
codeフィルターコード
nameフィルタの表示名
attributeフィルターはどのような属性に接続されているか
display mode

フィルターに使用する表示モード

select typeフィルターに使用されているセレクトの種類
autosubmit値が自動送信される場合の情報
operator関係演算子の種類
requiredフィルタが必要な場合のフラグ

リクエスト/レスポンス例

Using curl:

curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/reports/123/filters

JSON形式のレスポンス


{


   "id":123,


   "filters":[


      {


         "type":"FILTER",


         "code":"fiscalPeriod",


         "name":"Fiscal period",


         "attribute":"L_FISCAL_PERIOD",


         "displayMode":"DEFAULT",


         "selectType":"SELECT",


         "autosubmit":false,


         "operator":"IN",


         "required":true


      }


   ]


}