Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
696a7c0
[FIX] fastapi: Avoid zombie threads
lmignon Jan 8, 2025
8c090cd
[IMP] fastapi: add event loop lifecycle management
lmignon Jan 10, 2025
2db95d5
[FIX] fastapi: Graceful shutdown of event loop
lmignon Jan 10, 2025
1bf9751
[FIX] fastapi: Ensure thread safety of the FastAPI app cache
lmignon Jan 10, 2025
e657680
[IMP] fastapi: Improves app cache lifecycle
lmignon Jan 13, 2025
488e90b
[FIX] extendable_fastapi: Inherit from last declared fastapi dispatcher
paradoxxxzero Feb 25, 2025
f175fa6
[ADD] fastapi_encrypted_errors
paradoxxxzero Feb 25, 2025
983b2eb
[FIX] fastapi: headers is not a dict, it can have multiple values for…
paradoxxxzero Feb 26, 2025
5026f7b
[FIX] fastapi: remove useless code
lmignon Mar 14, 2025
6bab8c4
Merge PR #486 into 16.0
OCA-git-bot Mar 14, 2025
1e73351
[BOT] post-merge updates
OCA-git-bot Mar 14, 2025
5505a6a
[FIX] fastapi: Ensure no default eventloop thread is created
lmignon Mar 17, 2025
19b3e01
Merge PR #504 into 16.0
OCA-git-bot Apr 2, 2025
cac7b3c
[BOT] post-merge updates
OCA-git-bot Apr 2, 2025
b0f142a
[IMP] base_rest_demo: Test to validate the retrying mechanism
lmignon Apr 10, 2025
a3bae8c
[FIX] rest_log: Don't prevent the retrying mechanism
lmignon Apr 10, 2025
42644d8
Merge PR #508 into 16.0
OCA-git-bot Apr 10, 2025
90ae5a4
[BOT] post-merge updates
OCA-git-bot Apr 10, 2025
34ac61a
Merge PR #500 into 16.0
OCA-git-bot Apr 10, 2025
e0e48e3
[BOT] post-merge updates
OCA-git-bot Apr 10, 2025
a2d1a40
Translated using Weblate (Italian)
PicchiSeba Apr 24, 2025
e24654c
Translated using Weblate (Italian)
PicchiSeba Apr 24, 2025
91e529c
[FIX] datamodel: Not compatible with marshmallow >= 4.0.0
lmignon May 14, 2025
50c962b
Merge PR #527 into 16.0
OCA-git-bot May 14, 2025
3285f49
[BOT] post-merge updates
OCA-git-bot May 14, 2025
b4f1d65
Merge PR #520 into 16.0
OCA-git-bot May 14, 2025
01013f6
[BOT] post-merge updates
OCA-git-bot May 14, 2025
ed9d8bc
[IMP]fastapi: obtain endpoint via common method
PicchiSeba Feb 27, 2025
ebd6afe
[FIX]base_rest: Fix rest controllers inheritance.
jesusVMayor May 26, 2025
4a28543
Merge PR #529 into 16.0
OCA-git-bot May 28, 2025
c1855a0
[BOT] post-merge updates
OCA-git-bot May 28, 2025
bf65b2a
[ADD] auth_partner, fastapi_auth_partner
paradoxxxzero Jun 2, 2025
a8684e3
Merge PR #468 into 16.0
OCA-git-bot Jun 3, 2025
3b35ee0
[UPD] Update fastapi_encrypted_errors.pot
Jun 3, 2025
68c0eb6
[BOT] post-merge updates
OCA-git-bot Jun 3, 2025
3eb8106
Merge PR #456 into 16.0
OCA-git-bot Jun 3, 2025
ef98bb2
[UPD] Update auth_partner.pot
Jun 3, 2025
c049ffa
[UPD] Update fastapi.pot
Jun 3, 2025
3338168
[UPD] Update fastapi_auth_partner.pot
Jun 3, 2025
9db3661
[BOT] post-merge updates
OCA-git-bot Jun 3, 2025
b94bdf8
Update translation files
weblate Jun 3, 2025
e7f989e
Translated using Weblate (Italian)
mymage Jun 4, 2025
ef640cc
Added translation using Weblate (Italian)
mymage Jun 4, 2025
659d54b
Added translation using Weblate (Italian)
mymage Jun 4, 2025
c235c3b
[FIX] fastapi: Ensures inner exception is reset
lmignon Jun 4, 2025
0a42333
Merge PR #533 into 16.0
OCA-git-bot Jun 4, 2025
04c3f46
[BOT] post-merge updates
OCA-git-bot Jun 4, 2025
b8e155b
Added translation using Weblate (Italian)
mymage Jun 4, 2025
c838b2f
Translated using Weblate (Italian)
mymage Jun 4, 2025
a0da317
Translated using Weblate (Italian)
mymage Jun 4, 2025
4926f48
[IMP]fastapi: enable multi-slash routes
PicchiSeba May 5, 2025
55adbd2
[IMP] fastapi: Ensures endpoint matching is based on path parts
lmignon May 14, 2025
666a6b1
[IMP]fastapi: add test for multi-slash scenario
PicchiSeba Jun 11, 2025
bd4b5de
[FIX] fastapi: Flush before exiting Fastapi environment
grindtildeath Jun 11, 2025
5fe5dcd
Merge PR #542 into 16.0
OCA-git-bot Jun 16, 2025
4a64027
[BOT] post-merge updates
OCA-git-bot Jun 16, 2025
6ab603d
[FIX] fastapi: Running User Rule Domain
Tisho99 Jun 16, 2025
9e2c378
Merge PR #545 into 16.0
OCA-git-bot Jun 19, 2025
c91304c
[BOT] post-merge updates
OCA-git-bot Jun 19, 2025
d383536
Merge PR #515 into 16.0
OCA-git-bot Jun 25, 2025
6f480bf
[BOT] post-merge updates
OCA-git-bot Jun 25, 2025
7afbd96
Translated using Weblate (Italian)
mymage Jun 25, 2025
1d4d74e
[ADD] fastapi_log
paradoxxxzero Jul 15, 2025
7febae8
[REF] fastapi_log: Extract common features to `api_log`
SirPyTech Apr 15, 2025
5a93d45
[ADD] fastapi_log_mail
SirPyTech Apr 22, 2025
7df6af2
[FIX] fastapi_log: Manage multi-slash endpoints
SirPyTech Apr 28, 2025
2548ca9
[IMP] api_log: Hide sensitive headers
SirPyTech Apr 28, 2025
0332789
[IMP] api_log: Add collection of logs
SirPyTech Jun 25, 2025
996029a
[ADD] api_log_mail: Notify user about logged exceptions
SirPyTech Jun 25, 2025
70b3ece
[IMP] fastapi_log: Adapt to log collection
SirPyTech Jun 25, 2025
7674bd7
[IMP] fastapi_log_mail: Adapt to log collection
SirPyTech Jun 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,33 @@ Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[base_rest](base_rest/) | 16.0.1.0.3 | | Develop your own high level REST APIs for Odoo thanks to this addon.
[base_rest_auth_api_key](base_rest_auth_api_key/) | 16.0.1.0.0 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Base Rest: Add support for the auth_api_key security policy into the openapi documentation
[auth_partner](auth_partner/) | 16.0.1.0.0 | | Implements the base features for a authenticable partner
[base_rest](base_rest/) | 16.0.1.0.4 | | Develop your own high level REST APIs for Odoo thanks to this addon.
[base_rest_auth_api_key](base_rest_auth_api_key/) | 16.0.1.0.0 | <a href='https://github.com/lmignon'><img src='https://github.com/lmignon.png' width='32' height='32' style='border-radius:50%;' alt='lmignon'/></a> | Base Rest: Add support for the auth_api_key security policy into the openapi documentation
[base_rest_datamodel](base_rest_datamodel/) | 16.0.1.0.0 | | Datamodel binding for base_rest
[base_rest_demo](base_rest_demo/) | 16.0.2.0.2 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Demo addon for Base REST
[base_rest_demo](base_rest_demo/) | 16.0.2.0.4 | <a href='https://github.com/lmignon'><img src='https://github.com/lmignon.png' width='32' height='32' style='border-radius:50%;' alt='lmignon'/></a> | Demo addon for Base REST
[base_rest_pydantic](base_rest_pydantic/) | 16.0.2.0.1 | | Pydantic binding for base_rest
[datamodel](datamodel/) | 16.0.1.0.1 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | This addon allows you to define simple data models supporting serialization/deserialization
[extendable](extendable/) | 16.0.1.0.2 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Extendable classes registry loader for Odoo
[extendable_fastapi](extendable_fastapi/) | 16.0.2.1.1 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Allows the use of extendable into fastapi apps
[fastapi](fastapi/) | 16.0.1.4.5 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Odoo FastAPI endpoint
[fastapi_auth_jwt](fastapi_auth_jwt/) | 16.0.1.0.4 | [![sbidoul](https://github.com/sbidoul.png?size=30px)](https://github.com/sbidoul) | JWT bearer token authentication for FastAPI.
[fastapi_auth_jwt_demo](fastapi_auth_jwt_demo/) | 16.0.2.0.1 | [![sbidoul](https://github.com/sbidoul.png?size=30px)](https://github.com/sbidoul) | Test/demo module for fastapi_auth_jwt.
[graphql_base](graphql_base/) | 16.0.1.0.1 | [![sbidoul](https://github.com/sbidoul.png?size=30px)](https://github.com/sbidoul) | Base GraphQL/GraphiQL controller
[graphql_demo](graphql_demo/) | 16.0.1.0.1 | [![sbidoul](https://github.com/sbidoul.png?size=30px)](https://github.com/sbidoul) | GraphQL Demo
[pydantic](pydantic/) | 16.0.1.0.0 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Utility addon to ease mapping between Pydantic and Odoo models
[rest_log](rest_log/) | 16.0.1.0.2 | [![simahawk](https://github.com/simahawk.png?size=30px)](https://github.com/simahawk) | Track REST API calls into DB
[datamodel](datamodel/) | 16.0.1.0.2 | <a href='https://github.com/lmignon'><img src='https://github.com/lmignon.png' width='32' height='32' style='border-radius:50%;' alt='lmignon'/></a> | This addon allows you to define simple data models supporting serialization/deserialization
[extendable](extendable/) | 16.0.1.0.2 | <a href='https://github.com/lmignon'><img src='https://github.com/lmignon.png' width='32' height='32' style='border-radius:50%;' alt='lmignon'/></a> | Extendable classes registry loader for Odoo
[extendable_fastapi](extendable_fastapi/) | 16.0.2.1.2 | <a href='https://github.com/lmignon'><img src='https://github.com/lmignon.png' width='32' height='32' style='border-radius:50%;' alt='lmignon'/></a> | Allows the use of extendable into fastapi apps
[fastapi](fastapi/) | 16.0.1.7.0 | <a href='https://github.com/lmignon'><img src='https://github.com/lmignon.png' width='32' height='32' style='border-radius:50%;' alt='lmignon'/></a> | Odoo FastAPI endpoint
[fastapi_auth_jwt](fastapi_auth_jwt/) | 16.0.1.0.4 | <a href='https://github.com/sbidoul'><img src='https://github.com/sbidoul.png' width='32' height='32' style='border-radius:50%;' alt='sbidoul'/></a> | JWT bearer token authentication for FastAPI.
[fastapi_auth_jwt_demo](fastapi_auth_jwt_demo/) | 16.0.2.0.1 | <a href='https://github.com/sbidoul'><img src='https://github.com/sbidoul.png' width='32' height='32' style='border-radius:50%;' alt='sbidoul'/></a> | Test/demo module for fastapi_auth_jwt.
[fastapi_auth_partner](fastapi_auth_partner/) | 16.0.1.0.0 | | This provides an implementation of auth_partner for FastAPI
[fastapi_encrypted_errors](fastapi_encrypted_errors/) | 16.0.1.0.1 | <a href='https://github.com/paradoxxxzero'><img src='https://github.com/paradoxxxzero.png' width='32' height='32' style='border-radius:50%;' alt='paradoxxxzero'/></a> | Adds encrypted error messages to FastAPI error responses.
[graphql_base](graphql_base/) | 16.0.1.0.1 | <a href='https://github.com/sbidoul'><img src='https://github.com/sbidoul.png' width='32' height='32' style='border-radius:50%;' alt='sbidoul'/></a> | Base GraphQL/GraphiQL controller
[graphql_demo](graphql_demo/) | 16.0.1.0.1 | <a href='https://github.com/sbidoul'><img src='https://github.com/sbidoul.png' width='32' height='32' style='border-radius:50%;' alt='sbidoul'/></a> | GraphQL Demo
[pydantic](pydantic/) | 16.0.1.0.0 | <a href='https://github.com/lmignon'><img src='https://github.com/lmignon.png' width='32' height='32' style='border-radius:50%;' alt='lmignon'/></a> | Utility addon to ease mapping between Pydantic and Odoo models
[rest_log](rest_log/) | 16.0.1.0.3 | <a href='https://github.com/simahawk'><img src='https://github.com/simahawk.png' width='32' height='32' style='border-radius:50%;' alt='simahawk'/></a> | Track REST API calls into DB


Unported addons
---------------
addon | version | maintainers | summary
--- | --- | --- | ---
[base_rest_auth_jwt](base_rest_auth_jwt/) | 15.0.1.1.0 (unported) | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Base Rest: Add support for the auth_jwt security policy into the openapi documentation
[base_rest_auth_jwt](base_rest_auth_jwt/) | 15.0.1.1.0 (unported) | <a href='https://github.com/lmignon'><img src='https://github.com/lmignon.png' width='32' height='32' style='border-radius:50%;' alt='lmignon'/></a> | Base Rest: Add support for the auth_jwt security policy into the openapi documentation
[base_rest_auth_user_service](base_rest_auth_user_service/) | 15.0.1.0.1 (unported) | | Login/logout from session using a REST call
[model_serializer](model_serializer/) | 15.0.1.2.0 (unported) | [![fdegrave](https://github.com/fdegrave.png?size=30px)](https://github.com/fdegrave) | Automatically translate Odoo models into Datamodels for (de)serialization
[model_serializer](model_serializer/) | 15.0.1.2.0 (unported) | <a href='https://github.com/fdegrave'><img src='https://github.com/fdegrave.png' width='32' height='32' style='border-radius:50%;' alt='fdegrave'/></a> | Automatically translate Odoo models into Datamodels for (de)serialization

[//]: # (end addons)

Expand Down
87 changes: 87 additions & 0 deletions api_log/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
=======
API Log
=======

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ef0c0bceb8ae27bcfebaebc22e2fb4747475f2a2c60dd2d410bc40b6efee9b6a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frest--framework-lightgray.png?logo=github
:target: https://github.com/OCA/rest-framework/tree/16.0/api_log
:alt: OCA/rest-framework
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/rest-framework-16-0/rest-framework-16-0-api_log
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to store request and response logs for any API.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/rest-framework/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/rest-framework/issues/new?body=module:%20api_log%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Akretion

Contributors
------------

- Florian Mounier florian.mounier@akretion.com
- `PyTech <https://www.pytech.it>`__:

- Simone Rubino <simone.rubino@pytech.it>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

.. |maintainer-paradoxxxzero| image:: https://github.com/paradoxxxzero.png?size=40px
:target: https://github.com/paradoxxxzero
:alt: paradoxxxzero

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-paradoxxxzero|

This module is part of the `OCA/rest-framework <https://github.com/OCA/rest-framework/tree/16.0/api_log>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions api_log/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
20 changes: 20 additions & 0 deletions api_log/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2025 Akretion (http://www.akretion.com).
# @author Florian Mounier <florian.mounier@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "API Log",
"version": "16.0.1.0.0",
"author": "Akretion, Odoo Community Association (OCA)",
"license": "AGPL-3",
"summary": "Log API requests in database",
"category": "Tools",
"depends": ["web"],
"website": "https://github.com/OCA/rest-framework",
"data": [
"security/res_groups.xml",
"security/ir_model_access.xml",
"views/api_log_views.xml",
],
"maintainers": ["paradoxxxzero"],
}
2 changes: 2 additions & 0 deletions api_log/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import api_log_collection
from . import api_log
Loading