All URIs are relative to https://geoengine.io/api
| Method | HTTP request | Description |
|---|---|---|
| addCollection | POST /layerDb/collections/{collection}/collections | Add a new collection to an existing collection |
| addExistingCollectionToCollection | POST /layerDb/collections/{parent}/collections/{collection} | Add an existing collection to a collection |
| addExistingLayerToCollection | POST /layerDb/collections/{collection}/layers/{layer} | Add an existing layer to a collection |
| addLayer | POST /layerDb/collections/{collection}/layers | Add a new layer to a collection |
| addProvider | POST /layerDb/providers | Add a new provider |
| autocompleteHandler | GET /layers/collections/search/autocomplete/{provider}/{collection} | Autocompletes the search on the contents of the collection of the given provider |
| deleteProvider | DELETE /layerDb/providers/{provider} | Delete an existing provider |
| getProviderDefinition | GET /layerDb/providers/{provider} | Get an existing provider's definition |
| layerHandler | GET /layers/{provider}/{layer} | Retrieves the layer of the given provider |
| layerToDataset | POST /layers/{provider}/{layer}/dataset | Persist a raster layer from a provider as a dataset. |
| layerToWorkflowIdHandler | POST /layers/{provider}/{layer}/workflowId | Registers a layer from a provider as a workflow and returns the workflow id |
| listCollectionHandler | GET /layers/collections/{provider}/{collection} | List the contents of the collection of the given provider |
| listProviders | GET /layerDb/providers | List all providers |
| listRootCollectionsHandler | GET /layers/collections | List all layer collections |
| providerCapabilitiesHandler | GET /layers/{provider}/capabilities | |
| removeCollection | DELETE /layerDb/collections/{collection} | Remove a collection |
| removeCollectionFromCollection | DELETE /layerDb/collections/{parent}/collections/{collection} | Delete a collection from a collection |
| removeLayer | DELETE /layerDb/layers/{layer} | Remove a collection |
| removeLayerFromCollection | DELETE /layerDb/collections/{collection}/layers/{layer} | Remove a layer from a collection |
| searchHandler | GET /layers/collections/search/{provider}/{collection} | Searches the contents of the collection of the given provider |
| updateCollection | PUT /layerDb/collections/{collection} | Update a collection |
| updateLayer | PUT /layerDb/layers/{layer} | Update a layer |
| updateProviderDefinition | PUT /layerDb/providers/{provider} | Update an existing provider's definition |
IdResponse addCollection(collection, addLayerCollection)
Add a new collection to an existing collection
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { AddCollectionRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Layer collection id
collection: 05102bb3-a855-4a37-8a8a-30026a91fef1,
// AddLayerCollection
addLayerCollection: ...,
} satisfies AddCollectionRequest;
try {
const data = await api.addCollection(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| collection | string |
Layer collection id | [Defaults to undefined] |
| addLayerCollection | AddLayerCollection |
- Content-Type:
application/json - Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Id of generated resource | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
addExistingCollectionToCollection(parent, collection)
Add an existing collection to a collection
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { AddExistingCollectionToCollectionRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Parent layer collection id
parent: 05102bb3-a855-4a37-8a8a-30026a91fef1,
// string | Layer collection id
collection: collection_example,
} satisfies AddExistingCollectionToCollectionRequest;
try {
const data = await api.addExistingCollectionToCollection(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| parent | string |
Parent layer collection id | [Defaults to undefined] |
| collection | string |
Layer collection id | [Defaults to undefined] |
void (Empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
addExistingLayerToCollection(collection, layer)
Add an existing layer to a collection
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { AddExistingLayerToCollectionRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Layer collection id
collection: collection_example,
// string | Layer id
layer: layer_example,
} satisfies AddExistingLayerToCollectionRequest;
try {
const data = await api.addExistingLayerToCollection(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| collection | string |
Layer collection id | [Defaults to undefined] |
| layer | string |
Layer id | [Defaults to undefined] |
void (Empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IdResponse addLayer(collection, addLayer)
Add a new layer to a collection
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { AddLayerRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Layer collection id
collection: 05102bb3-a855-4a37-8a8a-30026a91fef1,
// AddLayer
addLayer: ...,
} satisfies AddLayerRequest;
try {
const data = await api.addLayer(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| collection | string |
Layer collection id | [Defaults to undefined] |
| addLayer | AddLayer |
- Content-Type:
application/json - Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Id of generated resource | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IdResponse addProvider(typedDataProviderDefinition)
Add a new provider
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { AddProviderRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// TypedDataProviderDefinition
typedDataProviderDefinition: ...,
} satisfies AddProviderRequest;
try {
const data = await api.addProvider(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| typedDataProviderDefinition | TypedDataProviderDefinition |
- Content-Type:
application/json - Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Id of generated resource | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array<string> autocompleteHandler(provider, collection, searchType, searchString, limit, offset)
Autocompletes the search on the contents of the collection of the given provider
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { AutocompleteHandlerRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Data provider id
provider: ce5e84db-cbf9-48a2-9a32-d4b7cc56ea74,
// string | Layer collection id
collection: 05102bb3-a855-4a37-8a8a-30026a91fef1,
// SearchType
searchType: fulltext,
// string
searchString: test,
// number
limit: 20,
// number
offset: 0,
} satisfies AutocompleteHandlerRequest;
try {
const data = await api.autocompleteHandler(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| provider | string |
Data provider id | [Defaults to undefined] |
| collection | string |
Layer collection id | [Defaults to undefined] |
| searchType | SearchType |
[Defaults to undefined] [Enum: fulltext, prefix] |
|
| searchString | string |
[Defaults to undefined] |
|
| limit | number |
[Defaults to undefined] |
|
| offset | number |
[Defaults to undefined] |
Array
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteProvider(provider)
Delete an existing provider
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { DeleteProviderRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Layer provider id
provider: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
} satisfies DeleteProviderRequest;
try {
const data = await api.deleteProvider(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| provider | string |
Layer provider id | [Defaults to undefined] |
void (Empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TypedDataProviderDefinition getProviderDefinition(provider)
Get an existing provider's definition
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { GetProviderDefinitionRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Layer provider id
provider: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
} satisfies GetProviderDefinitionRequest;
try {
const data = await api.getProviderDefinition(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| provider | string |
Layer provider id | [Defaults to undefined] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Layer layerHandler(provider, layer)
Retrieves the layer of the given provider
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { LayerHandlerRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Data provider id
provider: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
// string | Layer id
layer: layer_example,
} satisfies LayerHandlerRequest;
try {
const data = await api.layerHandler(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| provider | string |
Data provider id | [Defaults to undefined] |
| layer | string |
Layer id | [Defaults to undefined] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskResponse layerToDataset(provider, layer)
Persist a raster layer from a provider as a dataset.
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { LayerToDatasetRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Data provider id
provider: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
// string | Layer id
layer: layer_example,
} satisfies LayerToDatasetRequest;
try {
const data = await api.layerToDataset(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| provider | string |
Data provider id | [Defaults to undefined] |
| layer | string |
Layer id | [Defaults to undefined] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Id of created task | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IdResponse layerToWorkflowIdHandler(provider, layer)
Registers a layer from a provider as a workflow and returns the workflow id
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { LayerToWorkflowIdHandlerRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Data provider id
provider: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
// string | Layer id
layer: layer_example,
} satisfies LayerToWorkflowIdHandlerRequest;
try {
const data = await api.layerToWorkflowIdHandler(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| provider | string |
Data provider id | [Defaults to undefined] |
| layer | string |
Layer id | [Defaults to undefined] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Id of generated resource | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LayerCollection listCollectionHandler(provider, collection, offset, limit)
List the contents of the collection of the given provider
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { ListCollectionHandlerRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Data provider id
provider: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
// string | Layer collection id
collection: collection_example,
// number
offset: 0,
// number
limit: 20,
} satisfies ListCollectionHandlerRequest;
try {
const data = await api.listCollectionHandler(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| provider | string |
Data provider id | [Defaults to undefined] |
| collection | string |
Layer collection id | [Defaults to undefined] |
| offset | number |
[Defaults to undefined] |
|
| limit | number |
[Defaults to undefined] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array<LayerProviderListing> listProviders(offset, limit)
List all providers
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { ListProvidersRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// number
offset: 56,
// number
limit: 56,
} satisfies ListProvidersRequest;
try {
const data = await api.listProviders(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| offset | number |
[Defaults to undefined] |
|
| limit | number |
[Defaults to undefined] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LayerCollection listRootCollectionsHandler(offset, limit)
List all layer collections
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { ListRootCollectionsHandlerRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// number
offset: 0,
// number
limit: 20,
} satisfies ListRootCollectionsHandlerRequest;
try {
const data = await api.listRootCollectionsHandler(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| offset | number |
[Defaults to undefined] |
|
| limit | number |
[Defaults to undefined] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProviderCapabilities providerCapabilitiesHandler(provider)
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { ProviderCapabilitiesHandlerRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Data provider id
provider: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
} satisfies ProviderCapabilitiesHandlerRequest;
try {
const data = await api.providerCapabilitiesHandler(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| provider | string |
Data provider id | [Defaults to undefined] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
removeCollection(collection)
Remove a collection
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { RemoveCollectionRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Layer collection id
collection: collection_example,
} satisfies RemoveCollectionRequest;
try {
const data = await api.removeCollection(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| collection | string |
Layer collection id | [Defaults to undefined] |
void (Empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
removeCollectionFromCollection(parent, collection)
Delete a collection from a collection
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { RemoveCollectionFromCollectionRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Parent layer collection id
parent: 05102bb3-a855-4a37-8a8a-30026a91fef1,
// string | Layer collection id
collection: collection_example,
} satisfies RemoveCollectionFromCollectionRequest;
try {
const data = await api.removeCollectionFromCollection(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| parent | string |
Parent layer collection id | [Defaults to undefined] |
| collection | string |
Layer collection id | [Defaults to undefined] |
void (Empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
removeLayer(layer)
Remove a collection
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { RemoveLayerRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Layer id
layer: layer_example,
} satisfies RemoveLayerRequest;
try {
const data = await api.removeLayer(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| layer | string |
Layer id | [Defaults to undefined] |
void (Empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
removeLayerFromCollection(collection, layer)
Remove a layer from a collection
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { RemoveLayerFromCollectionRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Layer collection id
collection: collection_example,
// string | Layer id
layer: layer_example,
} satisfies RemoveLayerFromCollectionRequest;
try {
const data = await api.removeLayerFromCollection(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| collection | string |
Layer collection id | [Defaults to undefined] |
| layer | string |
Layer id | [Defaults to undefined] |
void (Empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LayerCollection searchHandler(provider, collection, searchType, searchString, limit, offset)
Searches the contents of the collection of the given provider
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { SearchHandlerRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Data provider id
provider: ce5e84db-cbf9-48a2-9a32-d4b7cc56ea74,
// string | Layer collection id
collection: 05102bb3-a855-4a37-8a8a-30026a91fef1,
// SearchType
searchType: fulltext,
// string
searchString: test,
// number
limit: 20,
// number
offset: 0,
} satisfies SearchHandlerRequest;
try {
const data = await api.searchHandler(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| provider | string |
Data provider id | [Defaults to undefined] |
| collection | string |
Layer collection id | [Defaults to undefined] |
| searchType | SearchType |
[Defaults to undefined] [Enum: fulltext, prefix] |
|
| searchString | string |
[Defaults to undefined] |
|
| limit | number |
[Defaults to undefined] |
|
| offset | number |
[Defaults to undefined] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateCollection(collection, updateLayerCollection)
Update a collection
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { UpdateCollectionRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Layer collection id
collection: 05102bb3-a855-4a37-8a8a-30026a91fef1,
// UpdateLayerCollection
updateLayerCollection: ...,
} satisfies UpdateCollectionRequest;
try {
const data = await api.updateCollection(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| collection | string |
Layer collection id | [Defaults to undefined] |
| updateLayerCollection | UpdateLayerCollection |
void (Empty response body)
- Content-Type:
application/json - Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateLayer(layer, updateLayer)
Update a layer
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { UpdateLayerRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Layer id
layer: 05102bb3-a855-4a37-8a8a-30026a91fef1,
// UpdateLayer
updateLayer: ...,
} satisfies UpdateLayerRequest;
try {
const data = await api.updateLayer(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| layer | string |
Layer id | [Defaults to undefined] |
| updateLayer | UpdateLayer |
void (Empty response body)
- Content-Type:
application/json - Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateProviderDefinition(provider, typedDataProviderDefinition)
Update an existing provider's definition
import {
Configuration,
LayersApi,
} from '@geoengine/api-client';
import type { UpdateProviderDefinitionRequest } from '@geoengine/api-client';
async function example() {
console.log("π Testing @geoengine/api-client SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: session_token
accessToken: "YOUR BEARER TOKEN",
});
const api = new LayersApi(config);
const body = {
// string | Layer provider id
provider: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
// TypedDataProviderDefinition
typedDataProviderDefinition: ...,
} satisfies UpdateProviderDefinitionRequest;
try {
const data = await api.updateProviderDefinition(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| provider | string |
Layer provider id | [Defaults to undefined] |
| typedDataProviderDefinition | TypedDataProviderDefinition |
void (Empty response body)
- Content-Type:
application/json - Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]