An API for CRUD of two types of distances
This API is intended to satisfy the following user stories
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import distance_client Install via Setuptools.
python setup.py install --user(or sudo python setup.py install to install the package for all users)
Then import the package:
import distance_clientPlease follow the installation procedure and then run the following:
from __future__ import print_function
import time
import distance_client
from distance_client.rest import ApiException
from pprint import pprint
# Defining host is optional and default to http://distance-api-service/api/v1
configuration.host = "http://distance-api-service/api/v1"
# Create an instance of the API class
api_instance = distance_client.LeafDeleteApi(distance_client.ApiClient(configuration))
id = 'id_example' # str |
try:
api_instance.samples_id_nearest_leaf_node_delete(id)
except ApiException as e:
print("Exception when calling LeafDeleteApi->samples_id_nearest_leaf_node_delete: %s\n" % e)All URIs are relative to http://distance-api-service/api/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| LeafDeleteApi | samples_id_nearest_leaf_node_delete | DELETE /samples/{id}/nearest-leaf-node | |
| LeafGetApi | samples_id_nearest_leaf_node_get | GET /samples/{id}/nearest-leaf-node | |
| LeafPutApi | samples_id_nearest_leaf_node_put | PUT /samples/{id}/nearest-leaf-node | |
| NeighboursGetApi | samples_id_nearest_neighbours_get | GET /samples/{id}/nearest-neighbours | |
| NeighboursPutApi | samples_id_nearest_neighbours_put | PUT /samples/{id}/nearest-neighbours | |
| SamplesDeleteApi | samples_id_delete | DELETE /samples/{id} | |
| SamplesGetApi | samples_id_get | GET /samples/{id} | |
| SamplesGetIdsApi | samples_get | GET /samples | |
| SamplesPatchApi | samples_id_patch | PATCH /samples/{id} | |
| SamplesPostApi | samples_post | POST /samples | |
| TreeDeleteApi | tree_id_delete | DELETE /tree/{id} | |
| TreeGetApi | tree_id_get | GET /tree/{id} | |
| TreePostApi | tree_post | POST /tree | |
| TreeSamplesGetApi | tree_id_samples_get | GET /tree/{id}/samples |
All endpoints do not require authorization.