# WebseaRestApi.SearchApi

All URIs are relative to *http:/api/*

Method | HTTP request | Description
------------- | ------------- | -------------
[**webseaFlightSequenceGet**](SearchApi.md#webseaFlightSequenceGet) | **GET** /websea/flightsequence | Return flight sequence containing events for the required location
[**webseaGraphsGet**](SearchApi.md#webseaGraphsGet) | **GET** /websea/graphs | Returns the list of the graphs
[**webseaLocationsGet**](SearchApi.md#webseaLocationsGet) | **GET** /websea/locations | Returns all existing graph locations

<a name="webseaFlightSequenceGet"></a>
# **webseaFlightSequenceGet**
> FlightSequence webseaFlightSequenceGet(locationId)

Return flight sequence containing events for the required location

### Example
```javascript
import {WebseaRestApi} from 'websea_rest_api';

let apiInstance = new WebseaRestApi.SearchApi();
let locationId = "locationId_example"; // String | Location ID

apiInstance.webseaFlightSequenceGet(locationId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **locationId** | **String**| Location ID | 

### Return type

[**FlightSequence**](FlightSequence.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="webseaGraphsGet"></a>
# **webseaGraphsGet**
> [GraphInfo] webseaGraphsGet(opts)

Returns the list of the graphs

Returns the list of the graphs

### Example
```javascript
import {WebseaRestApi} from 'websea_rest_api';

let apiInstance = new WebseaRestApi.SearchApi();
let opts = { 
  'searchPattern': "searchPattern_example", // String | Limit the results to the graphs that contain the required search pattern as a substring of any field. The search-pattern can contain the wildcard '*'.
  'locationId': "locationId_example" // String | Limit the results to the graphs at the required location
};
apiInstance.webseaGraphsGet(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **searchPattern** | **String**| Limit the results to the graphs that contain the required search pattern as a substring of any field. The search-pattern can contain the wildcard &#x27;*&#x27;. | [optional] 
 **locationId** | **String**| Limit the results to the graphs at the required location | [optional] 

### Return type

[**[GraphInfo]**](GraphInfo.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="webseaLocationsGet"></a>
# **webseaLocationsGet**
> [GraphLocation] webseaLocationsGet()

Returns all existing graph locations

### Example
```javascript
import {WebseaRestApi} from 'websea_rest_api';

let apiInstance = new WebseaRestApi.SearchApi();
apiInstance.webseaLocationsGet((error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**[GraphLocation]**](GraphLocation.md)

### Authorization

No authorization required

### HTTP request headers

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

