|
| 1 | +# simcore-director-sdk |
| 2 | +This is the oSparc's director API |
| 3 | + |
| 4 | +This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: |
| 5 | + |
| 6 | +- API version: 1.0.0 |
| 7 | +- Package version: 1.0.0 |
| 8 | +- Build package: org.openapitools.codegen.languages.PythonClientCodegen |
| 9 | + |
| 10 | +## Requirements. |
| 11 | + |
| 12 | +Python 2.7 and 3.4+ |
| 13 | + |
| 14 | +## Installation & Usage |
| 15 | +### pip install |
| 16 | + |
| 17 | +If the python package is hosted on Github, you can install directly from Github |
| 18 | + |
| 19 | +```sh |
| 20 | +pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git |
| 21 | +``` |
| 22 | +(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) |
| 23 | + |
| 24 | +Then import the package: |
| 25 | +```python |
| 26 | +import simcore_director_sdk |
| 27 | +``` |
| 28 | + |
| 29 | +### Setuptools |
| 30 | + |
| 31 | +Install via [Setuptools](http://pypi.python.org/pypi/setuptools). |
| 32 | + |
| 33 | +```sh |
| 34 | +python setup.py install --user |
| 35 | +``` |
| 36 | +(or `sudo python setup.py install` to install the package for all users) |
| 37 | + |
| 38 | +Then import the package: |
| 39 | +```python |
| 40 | +import simcore_director_sdk |
| 41 | +``` |
| 42 | + |
| 43 | +## Getting Started |
| 44 | + |
| 45 | +Please follow the [installation procedure](#installation--usage) and then run the following: |
| 46 | + |
| 47 | +```python |
| 48 | +from __future__ import print_function |
| 49 | +import time |
| 50 | +import simcore_director_sdk |
| 51 | +from simcore_director_sdk.rest import ApiException |
| 52 | +from pprint import pprint |
| 53 | + |
| 54 | +# create an instance of the API class |
| 55 | +api_instance = simcore_director_sdk.UsersApi(simcore_director_sdk.ApiClient(configuration)) |
| 56 | + |
| 57 | +try: |
| 58 | + # Service health-check endpoint |
| 59 | + api_response = api_instance.root_get() |
| 60 | + pprint(api_response) |
| 61 | +except ApiException as e: |
| 62 | + print("Exception when calling UsersApi->root_get: %s\n" % e) |
| 63 | + |
| 64 | +``` |
| 65 | + |
| 66 | +## Documentation for API Endpoints |
| 67 | + |
| 68 | +All URIs are relative to *http://localhost:{port}/{basePath}* |
| 69 | + |
| 70 | +Class | Method | HTTP request | Description |
| 71 | +------------ | ------------- | ------------- | ------------- |
| 72 | +*UsersApi* | [**root_get**](docs/UsersApi.md#root_get) | **GET** / | Service health-check endpoint |
| 73 | +*UsersApi* | [**running_interactive_services_delete**](docs/UsersApi.md#running_interactive_services_delete) | **DELETE** /running_interactive_services/{service_uuid} | Stops and removes an interactive service from the oSparc platform |
| 74 | +*UsersApi* | [**running_interactive_services_get**](docs/UsersApi.md#running_interactive_services_get) | **GET** /running_interactive_services/{service_uuid} | Succesfully returns if a service with the defined uuid is up and running |
| 75 | +*UsersApi* | [**running_interactive_services_post**](docs/UsersApi.md#running_interactive_services_post) | **POST** /running_interactive_services | Starts an interactive service in the oSparc platform and returns its entrypoint |
| 76 | +*UsersApi* | [**services_get**](docs/UsersApi.md#services_get) | **GET** /services | Lists available services in the oSparc platform |
| 77 | + |
| 78 | + |
| 79 | +## Documentation For Models |
| 80 | + |
| 81 | + - [Error](docs/Error.md) |
| 82 | + - [ErrorEnveloped](docs/ErrorEnveloped.md) |
| 83 | + - [HealthCheck](docs/HealthCheck.md) |
| 84 | + - [HealthCheckEnveloped](docs/HealthCheckEnveloped.md) |
| 85 | + - [NodeMetaV0](docs/NodeMetaV0.md) |
| 86 | + - [Nodemetav0Authors](docs/Nodemetav0Authors.md) |
| 87 | + - [Response204Enveloped](docs/Response204Enveloped.md) |
| 88 | + - [RunningService](docs/RunningService.md) |
| 89 | + - [RunningServiceEnveloped](docs/RunningServiceEnveloped.md) |
| 90 | + - [ServicesEnveloped](docs/ServicesEnveloped.md) |
| 91 | + |
| 92 | + |
| 93 | +## Documentation For Authorization |
| 94 | + |
| 95 | + All endpoints do not require authorization. |
| 96 | + |
| 97 | + |
| 98 | +## Author |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
0 commit comments