All URIs are relative to https://tweek-authoring/api/
Method | HTTP request | Description |
---|---|---|
getSearchIndex | GET /search-index | |
search | GET /search | |
getSuggestions | GET /suggestions |
object getSearchIndex()
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\SearchApi();
try {
$result = $api_instance->getSearchIndex();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SearchApi->getSearchIndex: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
object
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string[] search($q, $count)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\SearchApi();
$q = "q_example"; // string |
$count = 1.2; // double |
try {
$result = $api_instance->search($q, $count);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SearchApi->search: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
q | string | ||
count | double | [optional] |
string[]
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string[] getSuggestions($q, $count)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\SearchApi();
$q = "q_example"; // string |
$count = 1.2; // double |
try {
$result = $api_instance->getSuggestions($q, $count);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SearchApi->getSuggestions: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
q | string | ||
count | double | [optional] |
string[]
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]