POST api/Data

Queries the database based on a QueryCriteria object (Columns, Predicates, SortKeys, GroupKeys, RowFilters, Options, StartAt, Take, ProductId, EntityName). Returns a list of records based on the Columns provided

Request Information

URI Parameters

None.

Body Parameters

QueryCriteria object

SI.Model.Simfund.Generic.QueryCriteria
NameDescriptionTypeAdditional information
Predicates

Collection of SI.Model.Simfund.Generic.LiteDataItem

None.

RowFilters

Collection of SI.Model.Simfund.Generic.LiteDataItem

None.

Columns

Collection of SI.Model.Simfund.Generic.LiteDataItem

None.

SortKeys

Collection of SI.Model.Simfund.Generic.SortKey

None.

GroupKeys

Collection of SI.Model.Simfund.Generic.SortKey

None.

StartAt

integer

None.

Take

integer

None.

ProductId

integer

None.

EntityName

string

None.

Options

Collection of SI.Model.Simfund.Generic.CustomOption

None.

Request Formats

application/json, text/json

Sample:
{
  "Predicates": [
    {
      "Aggregate": null,
      "AggregateFunction": 1,
      "Alias": "sample string 1",
      "Category": {
        "IsUsedByGroupingItems": true,
        "IsUsedBySelectionItems": true,
        "IsUsedByDisplayItems": true,
        "Id": 1,
        "CategoryName": "sample string 4",
        "ProductId": 5
      },
      "ColumnOffset": 2,
      "ContainerId": 3,
      "DataProvider": "sample string 4",
      "DataTypeId": 5,
      "DefaultAggregate": null,
      "FieldId": 6,
      "FieldTypeId": 7,
      "Format": "sample string 8",
      "HeaderPrefix": "sample string 9",
      "HeaderSuffix": "sample string 10",
      "HeaderText": "sample string 11",
      "Id": "a8572ec1-0548-4783-9fe7-ccae6a010a9f",
      "IgnoreSearchField": true,
      "IsCommonDisplay": true,
      "IsCommonGroup": true,
      "IsCommonSelect": true,
      "IsLogicalContainer": true,
      "IsOr": true,
      "ItemKey": "sample string 19",
      "ItemName": "sample string 20",
      "ObservationHeader": "sample string 21",
      "ObservationKey": "sample string 22",
      "ObservationName": "sample string 23",
      "Operator": 0,
      "RateTargetKey": "sample string 24",
      "SubCategory": {
        "Id": 1,
        "SubCategoryName": "sample string 1",
        "CategoryName": "sample string 2",
        "CategoryId": 1,
        "ProductId": 3
      },
      "Target": null,
      "Value": {},
      "WeightedAverageItems": [],
      "WeightedAverageTargetKey": "sample string 26",
      "WeightedAverageTargetObservationKey": "sample string 27",
      "Width": 28,
      "WindowFunction": null
    },
    {
      "Aggregate": null,
      "AggregateFunction": 1,
      "Alias": "sample string 1",
      "Category": {
        "IsUsedByGroupingItems": true,
        "IsUsedBySelectionItems": true,
        "IsUsedByDisplayItems": true,
        "Id": 1,
        "CategoryName": "sample string 4",
        "ProductId": 5
      },
      "ColumnOffset": 2,
      "ContainerId": 3,
      "DataProvider": "sample string 4",
      "DataTypeId": 5,
      "DefaultAggregate": null,
      "FieldId": 6,
      "FieldTypeId": 7,
      "Format": "sample string 8",
      "HeaderPrefix": "sample string 9",
      "HeaderSuffix": "sample string 10",
      "HeaderText": "sample string 11",
      "Id": "a8572ec1-0548-4783-9fe7-ccae6a010a9f",
      "IgnoreSearchField": true,
      "IsCommonDisplay": true,
      "IsCommonGroup": true,
      "IsCommonSelect": true,
      "IsLogicalContainer": true,
      "IsOr": true,
      "ItemKey": "sample string 19",
      "ItemName": "sample string 20",
      "ObservationHeader": "sample string 21",
      "ObservationKey": "sample string 22",
      "ObservationName": "sample string 23",
      "Operator": 0,
      "RateTargetKey": "sample string 24",
      "SubCategory": {
        "Id": 1,
        "SubCategoryName": "sample string 1",
        "CategoryName": "sample string 2",
        "CategoryId": 1,
        "ProductId": 3
      },
      "Target": null,
      "Value": {},
      "WeightedAverageItems": [],
      "WeightedAverageTargetKey": "sample string 26",
      "WeightedAverageTargetObservationKey": "sample string 27",
      "Width": 28,
      "WindowFunction": null
    }
  ],
  "RowFilters": [
    {
      "Aggregate": null,
      "AggregateFunction": 1,
      "Alias": "sample string 1",
      "Category": {
        "IsUsedByGroupingItems": true,
        "IsUsedBySelectionItems": true,
        "IsUsedByDisplayItems": true,
        "Id": 1,
        "CategoryName": "sample string 4",
        "ProductId": 5
      },
      "ColumnOffset": 2,
      "ContainerId": 3,
      "DataProvider": "sample string 4",
      "DataTypeId": 5,
      "DefaultAggregate": null,
      "FieldId": 6,
      "FieldTypeId": 7,
      "Format": "sample string 8",
      "HeaderPrefix": "sample string 9",
      "HeaderSuffix": "sample string 10",
      "HeaderText": "sample string 11",
      "Id": "a8572ec1-0548-4783-9fe7-ccae6a010a9f",
      "IgnoreSearchField": true,
      "IsCommonDisplay": true,
      "IsCommonGroup": true,
      "IsCommonSelect": true,
      "IsLogicalContainer": true,
      "IsOr": true,
      "ItemKey": "sample string 19",
      "ItemName": "sample string 20",
      "ObservationHeader": "sample string 21",
      "ObservationKey": "sample string 22",
      "ObservationName": "sample string 23",
      "Operator": 0,
      "RateTargetKey": "sample string 24",
      "SubCategory": {
        "Id": 1,
        "SubCategoryName": "sample string 1",
        "CategoryName": "sample string 2",
        "CategoryId": 1,
        "ProductId": 3
      },
      "Target": null,
      "Value": {},
      "WeightedAverageItems": [],
      "WeightedAverageTargetKey": "sample string 26",
      "WeightedAverageTargetObservationKey": "sample string 27",
      "Width": 28,
      "WindowFunction": null
    },
    {
      "Aggregate": null,
      "AggregateFunction": 1,
      "Alias": "sample string 1",
      "Category": {
        "IsUsedByGroupingItems": true,
        "IsUsedBySelectionItems": true,
        "IsUsedByDisplayItems": true,
        "Id": 1,
        "CategoryName": "sample string 4",
        "ProductId": 5
      },
      "ColumnOffset": 2,
      "ContainerId": 3,
      "DataProvider": "sample string 4",
      "DataTypeId": 5,
      "DefaultAggregate": null,
      "FieldId": 6,
      "FieldTypeId": 7,
      "Format": "sample string 8",
      "HeaderPrefix": "sample string 9",
      "HeaderSuffix": "sample string 10",
      "HeaderText": "sample string 11",
      "Id": "a8572ec1-0548-4783-9fe7-ccae6a010a9f",
      "IgnoreSearchField": true,
      "IsCommonDisplay": true,
      "IsCommonGroup": true,
      "IsCommonSelect": true,
      "IsLogicalContainer": true,
      "IsOr": true,
      "ItemKey": "sample string 19",
      "ItemName": "sample string 20",
      "ObservationHeader": "sample string 21",
      "ObservationKey": "sample string 22",
      "ObservationName": "sample string 23",
      "Operator": 0,
      "RateTargetKey": "sample string 24",
      "SubCategory": {
        "Id": 1,
        "SubCategoryName": "sample string 1",
        "CategoryName": "sample string 2",
        "CategoryId": 1,
        "ProductId": 3
      },
      "Target": null,
      "Value": {},
      "WeightedAverageItems": [],
      "WeightedAverageTargetKey": "sample string 26",
      "WeightedAverageTargetObservationKey": "sample string 27",
      "Width": 28,
      "WindowFunction": null
    }
  ],
  "Columns": [
    {
      "Aggregate": null,
      "AggregateFunction": 1,
      "Alias": "sample string 1",
      "Category": {
        "IsUsedByGroupingItems": true,
        "IsUsedBySelectionItems": true,
        "IsUsedByDisplayItems": true,
        "Id": 1,
        "CategoryName": "sample string 4",
        "ProductId": 5
      },
      "ColumnOffset": 2,
      "ContainerId": 3,
      "DataProvider": "sample string 4",
      "DataTypeId": 5,
      "DefaultAggregate": null,
      "FieldId": 6,
      "FieldTypeId": 7,
      "Format": "sample string 8",
      "HeaderPrefix": "sample string 9",
      "HeaderSuffix": "sample string 10",
      "HeaderText": "sample string 11",
      "Id": "a8572ec1-0548-4783-9fe7-ccae6a010a9f",
      "IgnoreSearchField": true,
      "IsCommonDisplay": true,
      "IsCommonGroup": true,
      "IsCommonSelect": true,
      "IsLogicalContainer": true,
      "IsOr": true,
      "ItemKey": "sample string 19",
      "ItemName": "sample string 20",
      "ObservationHeader": "sample string 21",
      "ObservationKey": "sample string 22",
      "ObservationName": "sample string 23",
      "Operator": 0,
      "RateTargetKey": "sample string 24",
      "SubCategory": {
        "Id": 1,
        "SubCategoryName": "sample string 1",
        "CategoryName": "sample string 2",
        "CategoryId": 1,
        "ProductId": 3
      },
      "Target": null,
      "Value": {},
      "WeightedAverageItems": [],
      "WeightedAverageTargetKey": "sample string 26",
      "WeightedAverageTargetObservationKey": "sample string 27",
      "Width": 28,
      "WindowFunction": null
    },
    {
      "Aggregate": null,
      "AggregateFunction": 1,
      "Alias": "sample string 1",
      "Category": {
        "IsUsedByGroupingItems": true,
        "IsUsedBySelectionItems": true,
        "IsUsedByDisplayItems": true,
        "Id": 1,
        "CategoryName": "sample string 4",
        "ProductId": 5
      },
      "ColumnOffset": 2,
      "ContainerId": 3,
      "DataProvider": "sample string 4",
      "DataTypeId": 5,
      "DefaultAggregate": null,
      "FieldId": 6,
      "FieldTypeId": 7,
      "Format": "sample string 8",
      "HeaderPrefix": "sample string 9",
      "HeaderSuffix": "sample string 10",
      "HeaderText": "sample string 11",
      "Id": "a8572ec1-0548-4783-9fe7-ccae6a010a9f",
      "IgnoreSearchField": true,
      "IsCommonDisplay": true,
      "IsCommonGroup": true,
      "IsCommonSelect": true,
      "IsLogicalContainer": true,
      "IsOr": true,
      "ItemKey": "sample string 19",
      "ItemName": "sample string 20",
      "ObservationHeader": "sample string 21",
      "ObservationKey": "sample string 22",
      "ObservationName": "sample string 23",
      "Operator": 0,
      "RateTargetKey": "sample string 24",
      "SubCategory": {
        "Id": 1,
        "SubCategoryName": "sample string 1",
        "CategoryName": "sample string 2",
        "CategoryId": 1,
        "ProductId": 3
      },
      "Target": null,
      "Value": {},
      "WeightedAverageItems": [],
      "WeightedAverageTargetKey": "sample string 26",
      "WeightedAverageTargetObservationKey": "sample string 27",
      "Width": 28,
      "WindowFunction": null
    }
  ],
  "SortKeys": [
    {
      "ItemKey": "sample string 1",
      "ObservationKey": "sample string 2",
      "Direction": 0
    },
    {
      "ItemKey": "sample string 1",
      "ObservationKey": "sample string 2",
      "Direction": 0
    }
  ],
  "GroupKeys": [
    {
      "ItemKey": "sample string 1",
      "ObservationKey": "sample string 2",
      "Direction": 0
    },
    {
      "ItemKey": "sample string 1",
      "ObservationKey": "sample string 2",
      "Direction": 0
    }
  ],
  "StartAt": 1,
  "Take": 2,
  "ProductId": 3,
  "EntityName": "sample string 4",
  "Options": [
    {
      "Name": "sample string 1",
      "Value": "sample string 2"
    },
    {
      "Name": "sample string 1",
      "Value": "sample string 2"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'SI.Model.Simfund.Generic.QueryCriteria'.

Response Information

Resource Description

List of requested column values

System.Web.Http.IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.