FASTAPI Auth API-KEY for Som Connexio
This module uses OCAs FAST API module for creating endpoints with API-KEY authentication. It is based on the module fastapi_auth_api_key from the OCA, which was not available before the 17 version. This module provides a demo API-key and endpoint to test the authentication, and an API user related to the API-key.
Table of contents
Configuration
No configuration needed for this module.
Usage
To use this module it just needs to be installed. It provides FastAPI-based endpoints by extending fastapi.endpoint.
The module registers an example model API at the following roots:
POST: /demo/example/
GET: /demo/example/{id}
GET: /demo/example/search?code={code}
The authenticated API uses API-KEY
Also, the class APICommonBaseFastAPICase from tests/common_service.py can be inherited in API tests classes from dependent modules in order to reuse the test helpers.
Known issues / Roadmap
There are no known issues for this module.
Bug Tracker
Bugs are tracked on GitLab Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
TODO: Module to be substituted by the OCA module once this ODOO is migrated to the 17th version or further.
Credits
Contributors
-
Gerard Funosas <gerard.funosas@somconnexio.coop>
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Release files for odoo-addon-fastapi-auth-api-key-sc 16.0.1.0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| odoo_addon_fastapi_auth_api_key_sc-16.0.1.0.0.1.tar.gz | 29.6 kB | Details |
Release files / odoo_addon_fastapi_auth_api_key_sc-16.0.1.0.0.1.tar.gz
| Download URL | odoo_addon_fastapi_auth_api_key_sc-16.0.1.0.0.1.tar.gz |
|---|---|
| Size | 29.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd5247617533d4850c61a04deedbc534418a68448774fa998de40c134be30845
|
|
BLAKE2b-256 checksum How to use checksums |
b879c539ec4b8f7c9e16c1bfa626b1c8df5908aee4f3cc6aaaad50e707aa43a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|