Skip to content

Repository files navigation

apimatic-core-interfaces

PyPIMaintainability RatingVulnerabilitiesLicence

Introduction

This project contains the abstract layer for APIMatic's core library. The purpose of creating interfaces is to separate out the functionalities needed by APIMatic's core library module. The goal is to support scalability and feature enhancement of the core library and the SDKs, while avoiding breaking changes by reducing tight coupling between modules.

Version Supported

Currently, APIMatic supports Python version 3.7+, hence the apimatic-core-interfaces package requires the same version support.

Installation

Run the following command in your SDK (the apimatic-core-interfaces package will be added as a dependency):

pip install apimatic-core-interfaces

Interfaces

NameDescription
HttpClientSaves both request and response after the completion of response.
ResponseFactoryConverts the client-adapter response into a custom HTTP response.
AuthenticationSets up methods for the validation and application of the required authentication scheme.
UnionTypeSets up methods for the validation and deserialization of OneOf/AnyOf union types.
LoggerAn interface for the generic logger facade.
ApiLoggerAn interface for logging API requests and responses.
SignatureVerifierDefines the contract for verifying the authenticity of incoming events or webhook requests.

Types

NameDescription
RequestFramework-agnostic request model capturing headers, method, path, body, and raw bytes.
SignatureVerificationResultProvides a structured result of the verification process, including success, failure, and error details.

Enumerations

NameDescription
HttpMethodEnumEnumeration containing HTTP methods (GET, POST, PATCH, DELETE).

About

This project contains the abstract layer for APIMatic's core-lib.

Resources

Contributing

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages