Web API Edition | ComponentOne
Services / Report Services / Report Service / Parameters Information
In This Topic
    Parameters Information
    In This Topic

    Parameters information service uses Parameters API to enable users to get the parameters description for specified report and use this information to initialize parameter panel. Your client application sends an HTTP request to the service application for using Parameters API.

    Parameters Information Service Request Schema

    To obtain the information of all the parameters defined in a report through client, you need to use GET method. Report file path and report name are specified in the request URL, as:

    GET: http://<host>[:port]/api/report/{reportpath}/$report/parameters

    The following illustration depicts a request URL with parameters to get a report's parameter description.

    URL Parameters

    Parameters service URL primarily accepts report path. You need to specify the full report file path in the Request Url.

    Response Messages

    HTTP Status Code Reason
    200 Json string containing collection of IParameter.
    404 The report path does not exist.

    Parameter Service Request Schema

    To get the parameter with specified name defined in the report definition, you need to use GET method. Report file path and report name are specified in the request URL, as:

    GET:http://<host>[:port]/api/report/{reportpath}/$report/parameters/{parametername}

    URL Parameters

    Parameters service URL primarily accepts two parameters report path and parameter name. You need to specify the report file name and the parameter name in the Request Url.

    Response Messages

    HTTP Status Code Reason
    200 Json string containing IParameter type object.
    404 The report path or parameter name does not exist.

     For more information on Report Services, see WebApiExplorer demo.