About the BI Semantic Layer REST API Samples

The SDK samples described in the following table work with the Warehouse.unx sample universe. You can find this universe on the SAP Community Network at http://scn.sap.com/docs/DOC-22145Information published on SAP site. You must download the universe from this page and store it in a CMS repository to be able to run the samples.

Class Description
GetUniverseMetadataTest Returns the details of the Warehouse.unx universe using GET /universes/<universeID>
GetUniversesTest Returns the list of the universes in the CMS repository using GET /universes?offset&limit
GetUniverseViews Returns the views of the Warehouse.unx universe using GET /universes/<universeID>/businessviews
QueryExecutionTest Creates a query on top of Warehouse.unx:
  • Creates a query using POST /queries
  • Runs the query using GET /queries/<queryID>/data.svc
  • Returns the query results using GET /queries/<queryID>/data.svc/<flowName>
  • Deletes the query using DELETE /queries/<queryID>
QueryParametersTest Creates a query on top of Warehouse.unx and answers parameters this query requires:
  • Creates a query with parameters using POST /queries
  • Returns the query parameters using GET /queries/<queryID>/parameters
  • Runs the query using GET /queries/<queryID>/data.svc
  • Returns the query results using GET /queries/<queryID>/data.svc/<flowName>
  • Deletes the query using DELETE /queries/<queryID>
resources and util Packages

The com.sap.sl.sdk.consumption.samples.resources package contains XML descriptions used in sample requests, such as the query specification. The com.sap.sl.sdk.consumption.samples.util package provides classes that help to perform utility actions in the samples (for example, login, fill in CMS parameters, send a request, and so on).