# WebseaRestApi.DisplayApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**webseaSubgraphLocationIdGraphNameGet**](DisplayApi.md#webseaSubgraphLocationIdGraphNameGet) | **GET** /websea/subgraph/{location_id}/{graph_name} | Get the graph by ID

<a name="webseaSubgraphLocationIdGraphNameGet"></a>
# **webseaSubgraphLocationIdGraphNameGet**
> SubGraph webseaSubgraphLocationIdGraphNameGet(locationId, graphName, resolution, opts)

Get the graph by ID

Get the graph

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

let apiInstance = new WebseaRestApi.DisplayApi();
let locationId = "locationId_example"; // String | Location ID
let graphName = "graphName_example"; // String | Curve ID
let resolution = 56; // Number | the maximum number of point in the returned array
let opts = { 
  'start': 3.4, // Number | staring time on x axis, minimum existing x is returned if empty
  'end': 3.4 // Number | end time on x axis, minimum existing x is returned if empty
};
apiInstance.webseaSubgraphLocationIdGraphNameGet(locationId, graphName, resolution, opts, (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 | 
 **graphName** | **String**| Curve ID | 
 **resolution** | **Number**| the maximum number of point in the returned array | 
 **start** | **Number**| staring time on x axis, minimum existing x is returned if empty | [optional] 
 **end** | **Number**| end time on x axis, minimum existing x is returned if empty | [optional] 

### Return type

[**SubGraph**](SubGraph.md)

### Authorization

No authorization required

### HTTP request headers

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

