Skip to main content

Knowledge Stack API

Project description

ksapi

Knowledge Stack backend API for authentication and knowledge management

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 0.1.0
  • Package version: 1.4.0
  • Generator version: 7.16.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.9+

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 ksapi

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 ksapi

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import ksapi
from ksapi.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8000
# See configuration.py for a list of all supported configuration parameters.
configuration = ksapi.Configuration(
    host = "http://localhost:8000"
)



# Enter a context with an instance of the API client
with ksapi.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = ksapi.AuthApi(api_client)
    create_password_user_request = ksapi.CreatePasswordUserRequest() # CreatePasswordUserRequest | 

    try:
        # Create Password User Handler
        api_response = api_instance.create_password_user(create_password_user_request)
        print("The response of AuthApi->create_password_user:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AuthApi->create_password_user: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost:8000

Class Method HTTP request Description
AuthApi create_password_user POST /v1/auth/pw/user Create Password User Handler
AuthApi initiate_sso POST /v1/auth/sso/initiate Initiate Sso Handler
AuthApi oauth2_callback GET /v1/auth/sso/oauth2/callback Oauth2 Callback Handler
AuthApi pw_email_verification POST /v1/auth/pw/email_verification Pw Email Verification Handler
AuthApi pw_signin POST /v1/auth/pw/signin Signin Handler
AuthApi refresh_uat POST /v1/auth/uat Refresh Uat Handler
AuthApi reset_password POST /v1/auth/pw/reset Reset Password Handler
AuthApi reset_password_with_token POST /v1/auth/pw/reset_with_token Reset Password With Token Handler
AuthApi send_pw_reset_email POST /v1/auth/pw/send_reset_email Send Pw Reset Email Handler
AuthApi signout POST /v1/auth/signout Signout Handler
DefaultApi health_check GET /healthz Health Check Handler
DefaultApi hello GET / Root Handler
FoldersApi create_folder POST /v1/folders Create Folder Handler
FoldersApi delete_folder DELETE /v1/folders/{folder_id} Delete Folder Handler
FoldersApi get_folder GET /v1/folders/{folder_id} Get Folder Handler
FoldersApi list_folders GET /v1/folders List Folders Handler
FoldersApi update_folder PATCH /v1/folders/{folder_id} Update Folder Handler
InvitesApi accept_invite POST /v1/invites/{invite_id}/accept Accept Invite
InvitesApi create_invite POST /v1/invites Create Invite
InvitesApi list_invites GET /v1/invites List Invites Handler
PathPartsApi list_path_parts GET /v1/path-parts List Path Parts Handler
TenantsApi create_tenant POST /v1/tenants Create Tenant
TenantsApi delete_tenant DELETE /v1/tenants/{tenant_id} Delete Tenant
TenantsApi get_tenant GET /v1/tenants/{tenant_id} Get Tenant
TenantsApi list_tenant_users GET /v1/tenants/{tenant_id}/users List Tenant Users
TenantsApi list_tenants GET /v1/tenants List Tenants
TenantsApi update_tenant PATCH /v1/tenants/{tenant_id} Update Tenant
UsersApi get_me GET /v1/users/me Get Me Handler
UsersApi update_me PATCH /v1/users Update Me Handler

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

Project details


Release history Release notifications | RSS feed

This version

1.4.0

Download files

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

Source Distribution

ksapi-1.4.0.tar.gz (48.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ksapi-1.4.0-py3-none-any.whl (86.5 kB view details)

Uploaded Python 3

File details

Details for the file ksapi-1.4.0.tar.gz.

File metadata

  • Download URL: ksapi-1.4.0.tar.gz
  • Upload date:
  • Size: 48.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for ksapi-1.4.0.tar.gz
Algorithm Hash digest
SHA256 c58f79da1e942ff6c68e2811f98f9ba0853a170e5c5fad1cb28df22dff3eb2c7
MD5 6bbda64f334ae4f97405bb9d49e72a85
BLAKE2b-256 f30353f3c03eb6a587908f0ba1a40e9786d5083c48d19bb0363b2ab4b477abf4

See more details on using hashes here.

File details

Details for the file ksapi-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: ksapi-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 86.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for ksapi-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 071e8a93fc9311ba115eca260536bdf015d52d558b07ea50867408ae3f184bdc
MD5 0154f0bd954a30322780866b0ce79806
BLAKE2b-256 aaa95928f60caf619df813cc98f8068e0b4d16b9c3b4c6fbffdf7033e5066f87

See more details on using hashes here.

Supported by

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