Skip to content

Latest commit

 

History

History
124 lines (80 loc) · 2.57 KB

File metadata and controls

124 lines (80 loc) · 2.57 KB

GeneralApi

All URIs are relative to https://geoengine.io/api

Method HTTP request Description
availableHandler GET /available Server availablity check.
serverInfoHandler GET /info Shows information about the server software version.

availableHandler

availableHandler()

Server availablity check.

Example

import {
  Configuration,
  GeneralApi,
} from '@geoengine/api-client';
import type { AvailableHandlerRequest } from '@geoengine/api-client';

async function example() {
  console.log("🚀 Testing @geoengine/api-client SDK...");
  const api = new GeneralApi();

  try {
    const data = await api.availableHandler();
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

This endpoint does not need any parameter.

Return type

void (Empty response body)

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
204 Server availablity check -

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

serverInfoHandler

ServerInfo serverInfoHandler()

Shows information about the server software version.

Example

import {
  Configuration,
  GeneralApi,
} from '@geoengine/api-client';
import type { ServerInfoHandlerRequest } from '@geoengine/api-client';

async function example() {
  console.log("🚀 Testing @geoengine/api-client SDK...");
  const api = new GeneralApi();

  try {
    const data = await api.serverInfoHandler();
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Parameters

This endpoint does not need any parameter.

Return type

ServerInfo

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Server software information -

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