All URIs are relative to https://geoengine.io/api
| Method | HTTP request | Description |
|---|---|---|
| addMlModel | POST /ml/models | Create a new ml model. |
| getMlModel | GET /ml/models/{model_name} | Get ml model by name. |
| listMlModels | GET /ml/models | List ml models. |
MlModelNameResponse addMlModel(mlModel)
Create a new ml model.
import {
Configuration,
MLApi,
} from '@geoengine/api-client';
import type { AddMlModelRequest } 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 MLApi(config);
const body = {
// MlModel
mlModel: ...,
} satisfies AddMlModelRequest;
try {
const data = await api.addMlModel(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| mlModel | MlModel |
- Content-Type:
application/json - Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MlModel getMlModel(modelName)
Get ml model by name.
import {
Configuration,
MLApi,
} from '@geoengine/api-client';
import type { GetMlModelRequest } 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 MLApi(config);
const body = {
// string | Ml Model Name
modelName: modelName_example,
} satisfies GetMlModelRequest;
try {
const data = await api.getMlModel(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| modelName | string |
Ml Model Name | [Defaults to undefined] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array<MlModel> listMlModels()
List ml models.
import {
Configuration,
MLApi,
} from '@geoengine/api-client';
import type { ListMlModelsRequest } 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 MLApi(config);
try {
const data = await api.listMlModels();
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]