Skip to content

Latest commit

 

History

History
258 lines (146 loc) · 5.07 KB

File metadata and controls

258 lines (146 loc) · 5.07 KB

SlambySdk.SearchServiceApi

All URIs are relative to https://localhost/

Method HTTP request Description
searchActivateService POST /api/Services/Search/{id}/Activate
searchDeactivateService POST /api/Services/Search/{id}/Deactivate
searchGetService GET /api/Services/Search/{id}
searchPrepareService POST /api/Services/Search/{id}/Prepare
searchService POST /api/Services/Search/{id}

searchActivateService

searchActivateService(id, opts)

Example

var SlambySdk = require('slamby-sdk');


var apiInstance = new SlambySdk.SearchServiceApi();

var id = "id_example"; // String | 

var opts = { 
  'searchActivateSettings': new SlambySdk.SearchActivateSettings() // SearchActivateSettings | 
};

apiInstance.searchActivateService(id, opts).then(function() {
  console.log('API called successfully.');
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
id String
searchActivateSettings SearchActivateSettings [optional]

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, text/json, application/json-patch+json
  • Accept: Not defined

searchDeactivateService

searchDeactivateService(id)

Example

var SlambySdk = require('slamby-sdk');


var apiInstance = new SlambySdk.SearchServiceApi();

var id = "id_example"; // String | 


apiInstance.searchDeactivateService(id).then(function() {
  console.log('API called successfully.');
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
id String

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

searchGetService

SearchService searchGetService(id)

Example

var SlambySdk = require('slamby-sdk');


var apiInstance = new SlambySdk.SearchServiceApi();

var id = "id_example"; // String | 


apiInstance.searchGetService(id).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
id String

Return type

SearchService

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

searchPrepareService

searchPrepareService(id, opts)

Example

var SlambySdk = require('slamby-sdk');


var apiInstance = new SlambySdk.SearchServiceApi();

var id = "id_example"; // String | 

var opts = { 
  'searchPrepareSettings': new SlambySdk.SearchPrepareSettings() // SearchPrepareSettings | 
};

apiInstance.searchPrepareService(id, opts).then(function() {
  console.log('API called successfully.');
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
id String
searchPrepareSettings SearchPrepareSettings [optional]

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, text/json, application/json-patch+json
  • Accept: Not defined

searchService

[SearchResultWrapper] searchService(id, opts)

Example

var SlambySdk = require('slamby-sdk');


var apiInstance = new SlambySdk.SearchServiceApi();

var id = "id_example"; // String | 

var opts = { 
  'request': new SlambySdk.SearchRequest() // SearchRequest | 
};

apiInstance.searchService(id, opts).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
id String
request SearchRequest [optional]

Return type

[SearchResultWrapper]

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, text/json, application/json-patch+json
  • Accept: Not defined