the purpose of this application is to provide an application that is using plain go code to define an API This should demonstrate all the possible comment annotations that are available to turn go code into a fully compliant swagger 2.0 spec
This Python package is automatically generated by the Swagger Codegen project:
- API version: 0.0.1
- Package version: 0.0.4
- Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit https://www.rainbond.com
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
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 market_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 market_client
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import market_client
from market_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: enterprise_key
configuration = market_client.Configuration()
configuration.api_key['X_ENTERPRISE_ID'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X_ENTERPRISE_ID'] = 'Bearer'
# Configure API key authorization: token_key
configuration = market_client.Configuration()
configuration.api_key['X_ENTERPRISE_TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X_ENTERPRISE_TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = market_client.AppsApi(market_client.ApiClient(configuration))
market_id = 'market_id_example' # str | market id
data = market_client.PostAPPTemplete() # PostAPPTemplete | (optional)
try:
api_response = api_instance.create_app(market_id, data=data)
pprint(api_response)
except ApiException as e:
print("Exception when calling AppsApi->create_app: %s\n" % e)
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
AppsApi | create_app | POST /openapi/v2/markets/{marketID}/apps | |
AppsApi | create_app_version | POST /openapi/v2/markets/{marketID}/apps/{appID}/versions | |
AppsApi | download_app_by_order | GET /openapi/v2/orders/{orderID}/downloadapp | |
AppsApi | get_app_version | GET /openapi/v2/markets/{marketID}/apps/{appID}/versions/{versionID} | |
AppsApi | get_app_versions | GET /openapi/v2/markets/{marketID}/apps/{appID}/versions | |
AppsApi | get_app_with_version | GET /openapi/v2/markets/{marketID}/apps/{appID} | |
AppsApi | get_apps_with_version | GET /openapi/v2/markets/{marketID}/apps | |
AppsApi | get_market | GET /openapi/v2/markets/{marketID} | |
AppsApi | get_markets | GET /openapi/v2/markets | |
AppsApi | get_recommended_app_list | GET /openapi/v2/recommended/apps | get recommended app list |
OrdersApi | get_order_request | GET /openapi/v2/orders/{orderID} | get order infos |
- AccessMode
- AppListResponse
- DeliveryMode
- DeployType
- Enterprise
- ImageInfo
- Market
- MarketListResponse
- Order
- OrderApp
- OrderBuyer
- OrderInfoResponse
- OrderState
- OrderSvcProvider
- OrderType
- PostAPPTemplete
- ResponseData
- ResponseDataData
- StoreApp
- StoreAppTag
- StoreAppVersion
- StoreAppVersionTemplete
- StoreAppVersionTempleteApp
- StoreAppVersionTempleteAppDepService
- StoreAppVersionTempleteAppEnv
- StoreAppVersionTempleteAppExtendMethodRule
- StoreAppVersionTempleteAppPluginConfig
- StoreAppVersionTempleteAppPort
- StoreAppVersionTempleteAppProbe
- StoreAppVersionTempleteAppShareVolume
- StoreAppVersionTempleteAppVolume
- StoreAppVersionTempleteAppVolumeList
- StoreAppVersionTempletePlugin
- StoreAppVersionTempletePluginConfigGroup
- StoreAppVersionTempletePluginConfigGroupOption
- TempleteVersion
- VolumeType
- Type: API key
- API key parameter name: X_ENTERPRISE_ID
- Location: HTTP header
- Type: API key
- API key parameter name: X_ENTERPRISE_TOKEN
- Location: HTTP header