# dmss-api
API for basic data modelling interaction
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 0.1.0
- Package version: 0.3.4
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
## Requirements.
Python >= 3.6
## Installation & Usage
### pip install
If the python package is hosted on a repository, you can install directly using:
```sh
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:
```python
import dmss_api
```
### Setuptools
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
```sh
python setup.py install --user
```
(or `sudo python setup.py install` to install the package for all users)
Then import the package:
```python
import dmss_api
```
## Getting Started
Please follow the [installation procedure](#installation--usage) and then run the following:
```python
import time
import dmss_api
from pprint import pprint
from dmss_api.api import default_api
from dmss_api.model.add_to_parent_request import AddToParentRequest
from dmss_api.model.data_source_request import DataSourceRequest
from dmss_api.model.entity_name import EntityName
from dmss_api.model.get_document_response import GetDocumentResponse
from dmss_api.model.http_validation_error import HTTPValidationError
from dmss_api.model.move_request import MoveRequest
from dmss_api.model.remove_by_path_request import RemoveByPathRequest
from dmss_api.model.remove_request import RemoveRequest
from dmss_api.model.rename_request import RenameRequest
from dmss_api.model.search_data_request import SearchDataRequest
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = dmss_api.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with dmss_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = default_api.DefaultApi(api_client)
data_source_id = "data_source_id_example" # str |
blob_id = "blob_id_example" # str |
try:
# Get By Id
api_response = api_instance.blob_get_by_id(data_source_id, blob_id)
pprint(api_response)
except dmss_api.ApiException as e:
print("Exception when calling DefaultApi->blob_get_by_id: %s\n" % e)
```
## Documentation for API Endpoints
All URIs are relative to *http://localhost*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DefaultApi* | [**blob_get_by_id**](docs/DefaultApi.md#blob_get_by_id) | **GET** /api/v1/blobs/{data_source_id}/{blob_id} | Get By Id
*DefaultApi* | [**blueprint_get**](docs/DefaultApi.md#blueprint_get) | **GET** /api/v1/blueprint/{type_ref} | Get Blueprint
*DefaultApi* | [**data_source_get**](docs/DefaultApi.md#data_source_get) | **GET** /api/v1/data-sources/{data_source_id} | Get
*DefaultApi* | [**data_source_get_all**](docs/DefaultApi.md#data_source_get_all) | **GET** /api/v1/data-sources | Get All
*DefaultApi* | [**data_source_save**](docs/DefaultApi.md#data_source_save) | **POST** /api/v1/data-sources/{data_source_id} | Save
*DefaultApi* | [**document_get_by_id**](docs/DefaultApi.md#document_get_by_id) | **GET** /api/v1/documents/{data_source_id}/{document_id} | Get By Id
*DefaultApi* | [**document_get_by_path**](docs/DefaultApi.md#document_get_by_path) | **GET** /api/v1/documents-by-path/{data_source_id} | Get By Path
*DefaultApi* | [**document_update**](docs/DefaultApi.md#document_update) | **PUT** /api/v1/documents/{data_source_id}/{document_id} | Update
*DefaultApi* | [**explorer_add_document**](docs/DefaultApi.md#explorer_add_document) | **POST** /api/v1/explorer/{data_source_id}/add-document | Add Document
*DefaultApi* | [**explorer_add_package**](docs/DefaultApi.md#explorer_add_package) | **POST** /api/v1/explorer/{data_source_id}/add-package | Add Package
*DefaultApi* | [**explorer_add_raw**](docs/DefaultApi.md#explorer_add_raw) | **POST** /api/v1/explorer/{data_source_id}/add-raw | Add Raw
*DefaultApi* | [**explorer_add_to_parent**](docs/DefaultApi.md#explorer_add_to_parent) | **POST** /api/v1/explorer/{data_source_id}/add-to-parent | Add To Parent
*DefaultApi* | [**explorer_add_to_path**](docs/DefaultApi.md#explorer_add_to_path) | **POST** /api/v1/explorer/{data_source_id}/add-to-path | Add To Path
*DefaultApi* | [**explorer_move**](docs/DefaultApi.md#explorer_move) | **POST** /api/v1/explorer/{data_source_id}/move | Move
*DefaultApi* | [**explorer_remove**](docs/DefaultApi.md#explorer_remove) | **POST** /api/v1/explorer/{data_source_id}/remove | Remove
*DefaultApi* | [**explorer_remove_by_path**](docs/DefaultApi.md#explorer_remove_by_path) | **POST** /api/v1/explorer/{data_source_id}/remove-by-path | Remove By Path
*DefaultApi* | [**explorer_rename**](docs/DefaultApi.md#explorer_rename) | **PUT** /api/v1/explorer/{data_source_id}/rename | Rename
*DefaultApi* | [**package_find_by_name**](docs/DefaultApi.md#package_find_by_name) | **GET** /api/v1/packages/{data_source_id}/findByName/{name} | Find By Name
*DefaultApi* | [**package_get**](docs/DefaultApi.md#package_get) | **GET** /api/v1/packages/{data_source_id} | Get
*DefaultApi* | [**search**](docs/DefaultApi.md#search) | **POST** /api/v1/search/{data_source_id} | Search
## Documentation For Models
- [AddToParentRequest](docs/AddToParentRequest.md)
- [DataSourceRequest](docs/DataSourceRequest.md)
- [DataSourceType](docs/DataSourceType.md)
- [EntityName](docs/EntityName.md)
- [GetDocumentResponse](docs/GetDocumentResponse.md)
- [HTTPValidationError](docs/HTTPValidationError.md)
- [MoveRequest](docs/MoveRequest.md)
- [RemoveByPathRequest](docs/RemoveByPathRequest.md)
- [RemoveRequest](docs/RemoveRequest.md)
- [RenameRequest](docs/RenameRequest.md)
- [Repository](docs/Repository.md)
- [SearchDataRequest](docs/SearchDataRequest.md)
- [ValidationError](docs/ValidationError.md)
## Documentation For Authorization
All endpoints do not require authorization.
## Author
## Notes for Large OpenAPI documents
If the OpenAPI document is large, imports in dmss_api.apis and dmss_api.models may fail with a
RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
Solution 1:
Use specific imports for apis and models like:
- `from dmss_api.api.default_api import DefaultApi`
- `from dmss_api.model.pet import Pet`
Solution 2:
Before importing the package, adjust the maximum recursion limit as shown below:
```
import sys
sys.setrecursionlimit(1500)
import dmss_api
from dmss_api.apis import *
from dmss_api.models import *
```
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共47个文件
py:39个
txt:4个
pkg-info:2个
资源分类:Python库 所属语言:Python 资源全名:dmss-api-0.3.4.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
dmss-api-0.3.4.tar.gz (47个子文件)
dmss-api-0.3.4
PKG-INFO 393B
test
test_add_to_parent_request.py 755B
test_http_validation_error.py 868B
test_entity_name.py 697B
test_get_document_response.py 761B
test_default_api.py 3KB
test_rename_request.py 718B
test_data_source_request.py 833B
test_search_data_request.py 747B
test_validation_error.py 732B
test_repository.py 800B
test_remove_request.py 718B
test_remove_by_path_request.py 762B
test_data_source_type.py 726B
test_move_request.py 704B
setup.cfg 69B
dmss_api
models
__init__.py 1KB
model_utils.py 73KB
model
repository.py 8KB
rename_request.py 7KB
search_data_request.py 7KB
remove_by_path_request.py 7KB
move_request.py 6KB
__init__.py 348B
get_document_response.py 7KB
validation_error.py 7KB
data_source_request.py 7KB
entity_name.py 6KB
data_source_type.py 7KB
remove_request.py 7KB
http_validation_error.py 6KB
add_to_parent_request.py 8KB
configuration.py 16KB
api
__init__.py 212B
default_api.py 95KB
__init__.py 675B
apis
__init__.py 461B
api_client.py 36KB
rest.py 12KB
exceptions.py 5KB
dmss_api.egg-info
PKG-INFO 393B
requires.txt 32B
SOURCES.txt 1KB
top_level.txt 9B
dependency_links.txt 1B
setup.py 1011B
README.md 7KB
共 47 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功