Skip to main content

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

Documentation For Authorization

Authentication schemes defined for the API:

Bearer-JWT

  • Type: Bearer authentication (JWT)

Author

clowzed.work@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seroapi-0.2.7.tar.gz (25.6 kB view hashes)

Uploaded Source

Built Distribution

seroapi-0.2.7-py3-none-any.whl (41.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page