API pública da Gravscale oferece aos usuários a capacidade de se autenticar, visualizar e contratar produtos disponíveis, enviar dados de contratação, escolher formas de pagamento e gerenciar nossos produtos. Além disso, os usuários podem cadastrar chaves SSH e realizar o deploy de um sistema operacional de forma eficiente e segura. Esta API foi projetado para simplificar e agilizar o gerenciamento de recursos proporcionando que a a Gravscale forneça uma experiência integrada e intuitiva para os usuários.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 1.0.0
- Generator version: 7.5.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python 3.7+
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/gravscale/gravscale-sdk.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/gravscale/gravscale-sdk.git
)
Then import the package:
import gravscale
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 gravscale
Execute pytest
to run the tests.
Please follow the installation procedure and then run the following:
import gravscale
from gravscale.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = gravscale.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with gravscale.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = gravscale.AuthenticationApi(api_client)
login_schema = gravscale.LoginSchema() # LoginSchema |
try:
# Sign In
api_response = api_instance.sign_in(login_schema)
print("The response of AuthenticationApi->sign_in:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthenticationApi->sign_in: %s\n" % e)
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
AuthenticationApi | sign_in | POST /api/auth/sign-in | Sign In |
AuthenticationApi | sign_up | POST /api/auth/sign-up | Sign Up |
MetalApi | get_metal | GET /api/metal/ | Get Available Metals |
- AccountSchema
- AuthorizationSchema
- HTTPValidationError
- LoginSchema
- ValidationError
- ValidationErrorLocInner
Authentication schemes defined for the API:
- Type: Bearer authentication