sero
Project description
seroapi
Muiltidomain static site hosting
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.2.7
- Package version: 0.2.7
- Generator version: 7.7.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.7+
Installation & Usage
pip install
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 seroapi
Setuptools
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 seroapi
Tests
Execute pytest
to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import seroapi
from seroapi.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 = seroapi.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with seroapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = seroapi.AccountManagementApi(api_client)
login_request = seroapi.LoginRequest() # LoginRequest |
try:
# Login user and receive JWT token.
api_response = api_instance.login(login_request)
print("The response of AccountManagementApi->login:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountManagementApi->login: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
AccountManagementApi | login | POST /api/auth/login | Login user and receive JWT token. |
AccountManagementApi | registration | POST /api/auth/registration | Register new user for sero server. |
ActionsApi | disable_site | PATCH /api/site/disable | Disables a specific site identified by the `x-subdomain` header. |
ActionsApi | download_site | GET /api/site | Download site of the specified subdomain. |
ActionsApi | enable_site | PATCH /api/site/enable | Enables a specific site identified by the `x-subdomain` header. |
ActionsApi | teardown_site | DELETE /api/site | Removes a specific site identified by the `x-subdomain` header. |
ActionsApi | upload_site | POST /api/site | Uploads site for a specified subdomain. |
OriginsManagementAndDynamicAccessControlApi | create_origin | POST /api/origin | Adds a new origin to a specified subdomain for dynamic CORS (Cross-Origin Resource Sharing) management. |
OriginsManagementAndDynamicAccessControlApi | delete_all_origins | DELETE /api/origin | Delete all origins for specified subdomain for dynamic CORS (Cross-Origin Resource Sharing) management. |
OriginsManagementAndDynamicAccessControlApi | delete_origin_by_id | DELETE /api/origin/{id} | Delete origin by id for specified subdomain for dynamic CORS (Cross-Origin Resource Sharing) management. |
OriginsManagementAndDynamicAccessControlApi | get_all_origins | GET /api/origin | List all origins for specified subdomain for dynamic CORS (Cross-Origin Resource Sharing) management. |
OriginsManagementAndDynamicAccessControlApi | get_origin_by_id | GET /api/origin/{id} | Get specified origin [by id] for specified subdomain for dynamic CORS (Cross-Origin Resource Sharing) management. |
Documentation For Models
- AddOriginRequest
- AddOriginResponse
- Details
- GetOriginResponse
- ListOriginsResponse
- LoginRequest
- LoginResponse
- OriginModel
- RegistrationRequest
- RegistrationResponse
Documentation For Authorization
Authentication schemes defined for the API:
Bearer-JWT
- Type: Bearer authentication (JWT)
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file seroapi-0.2.7.tar.gz
.
File metadata
- Download URL: seroapi-0.2.7.tar.gz
- Upload date:
- Size: 25.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac8cdcb44e9fc0460f798c86bad950778684cb012c550201be6c7c5bf7a6a8f1 |
|
MD5 | 84a7deabad150b8d4a71a284f505868e |
|
BLAKE2b-256 | 8c3cdaea833e1fa94bc08ecfa12b537349f9f79639dc4174996932cd94d02abd |
File details
Details for the file seroapi-0.2.7-py3-none-any.whl
.
File metadata
- Download URL: seroapi-0.2.7-py3-none-any.whl
- Upload date:
- Size: 41.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18490e10e8ca08e802f8928308e0e32a2c22fe9f6313581fc1ef83c43e76f653 |
|
MD5 | bacca7838dbe15bfa35149e56058b055 |
|
BLAKE2b-256 | fee9079642d026959d45ca1ff98091d6091082b2d72172189dc537377e1c1163 |