Skip to content

Latest commit

 

History

History
74 lines (51 loc) · 2.35 KB

SearchApi.md

File metadata and controls

74 lines (51 loc) · 2.35 KB

Qase\APIClientV1\SearchApi

All URIs are relative to https://api.qase.io/v1, except if the operation defines another base path.

Method HTTP request Description
search() GET /search Search entities by Qase Query Language (QQL)

search()

search($query, $limit, $offset): \Qase\APIClientV1\Model\SearchResponse

Search entities by Qase Query Language (QQL)

This method allows to retrieve data sets for various entities using expressions with conditions.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: TokenAuth
$config = Qase\APIClientV1\Configuration::getDefaultConfiguration()->setApiKey('Token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Qase\APIClientV1\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Token', 'Bearer');


$apiInstance = new Qase\APIClientV1\Api\SearchApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$query = 'query_example'; // string | Expression in Qase Query Language.
$limit = 10; // int | A number of entities in result set.
$offset = 0; // int | How many entities should be skipped.

try {
    $result = $apiInstance->search($query, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SearchApi->search: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
query string Expression in Qase Query Language.
limit int A number of entities in result set. [optional] [default to 10]
offset int How many entities should be skipped. [optional] [default to 0]

Return type

\Qase\APIClientV1\Model\SearchResponse

Authorization

TokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]