Retrieve Business View Data

get

/OracleBAMREST/api/projects/{projectname}/businessviews/{businessviewname}/data

Retrieves the records that are obtained by running the business query pertaining to given business view.

Request

There are no request parameters for this operation.

Back to Top

Response

Supported Media Types

200 Response

Success
Body
Example Response (application/json)
{
    "COUNTEventTypeCode_Recv":[
        {
            "x":"1-In Flight",
            "y":34
        },
        {
            "x":"2-Discarded",
            "y":18
        },
        {
            "x":"3-Delivered",
            "y":244
        },
        {
            "x":"4-Failed",
            "y":34
        }
    ]
}
Back to Top

Examples

The following example shows how to view items in bulk by GUIDs by submitting a GET request on the REST resource using cURL.

curl -i -X GET https://<hostname>/content/management/api/v1/items/bulk?guids= ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef,ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2

Example: Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK
Cache-Control: max-age=0
Content-Length: 1750
Content-Type: application/json
Date: Tue, 03 Jan 2017 10:30:12 GMT
Etag: "ba12800a55d800aa095e45c5a7d8e6a5487b72727b4753febd81fd755757e8d7"
Server: Apache-Coyote/1.1
X-XSS-Protection: 1
x-content-type-options: nosniff

Example: Response Body

The following is an example of the response returned in JSON format. It shows items in bulk by GUIDs: ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef,ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2.

        {
        "items":
        {
            "ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef":
            {
                "id": "ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef",
                "type": "ModelType",
                "name": "BMW",
                "description": "BMW model description",
                "createdby": "userName",
                "createddate":
                {
                    "value": "2017-01-03T09:48:56.110Z",
                    "timezone": "UTC",
                    "description": ""
                },
                "updatedby": "userName",
                "updateddate":
                {
                    "value": "2017-01-03T10:02:21.360Z",
                    "timezone": "UTC",
                    "description": ""
                },
                "links": null,
                "data" : {
								"Model": "BMW Z4"
								"Year": 2015,
                		}
            },
            "ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2":
            {
                "id": "ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2",
                "type": "ModelType",
                "name": "BMW",
                "description": "BMW model description",
                "createdby": "userName",
                "createddate":
                {
                    "value": "2017-01-03T10:28:28.690Z",
                    "timezone": "UTC",
                    "description": ""
                },
                "updatedby": "userName",
                "updateddate":
                {
                    "value": "2017-01-03T10:28:28.690Z",
                    "timezone": "UTC",
                    "description": ""
                },
                "links": null,
                "data" : {
								"Model": "BMW 3-Series"
								"Year": 2015,
                		}
            }
        },
        "links":
        [
            {
                "href": "https://<hostname>/content/management/api/v1/items/bulk?guids=ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef,ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2",
                "rel": "self",
                "templated": false,
                "method": "GET",
                "profile": "",
                "mediaType": ""
            },
            {
                "href": "https://<hostname>/content/management/api/v1/items/bulk?guids=ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef,ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2",
                "rel": "canonical",
                "templated": false,
                "method": "GET",
                "profile": "",
                "mediaType": ""
            },
            {
                "href": "https://<hostname>/content/management/api/v1/metadata-catalog/items/bulk",
                "rel": "describedby",
                "templated": false,
                "method": "GET",
                "profile": "",
                "mediaType": "application/schema+json"
            }
        ]
    }
Back to Top