Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Latest commit

 

History

History
146 lines (92 loc) · 3.07 KB

SearchApi.md

File metadata and controls

146 lines (92 loc) · 3.07 KB

Swagger\Client\SearchApi

All URIs are relative to https://tweek-authoring/api/

Method HTTP request Description
getSearchIndex GET /search-index
search GET /search
getSuggestions GET /suggestions

getSearchIndex

object getSearchIndex()

Example

<?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;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

object

Authorization

No authorization required

HTTP request headers

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

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

search

string[] search($q, $count)

Example

<?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;
}
?>

Parameters

Name Type Description Notes
q string
count double [optional]

Return type

string[]

Authorization

No authorization required

HTTP request headers

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

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

getSuggestions

string[] getSuggestions($q, $count)

Example

<?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;
}
?>

Parameters

Name Type Description Notes
q string
count double [optional]

Return type

string[]

Authorization

No authorization required

HTTP request headers

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

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