Shopinvader API Cart
This addon adds a web API on top of the sale.order model to ease the creation of sale orders from Web frontend. The API is designed to work with the shopinvader-js-cart library see (https://github.com/shopinvader/shopinvader-js-cart)
Table of contents
Usage
All the routes under the cart_router must be prefixed with /cart. This is not done in this addon to let the developper mount this router as a sub-app, allowing a specific authentification mechanism.
If mounting the router in the same app as other routers (because it doesn’t need a specific authentification mechanism), just add a prefix:
def _get_app(self): app = super()._get_app() app.include_router(router=cart_router, prefix='/cart') return app
If you want a nested app, just do as follows:
def _get_app(self): app = super()._get_app() app.dependencies_overrides.update( self._get_app_dependencies_overrides() ) cart_app = FastAPI() cart_app.include_router(cart_router) # First copy dependencies overrides from the main app cart_app.dependencies_overrides.update( self._get_app_dependencies_overrides() ) # Then add / modify specific dependencies overrides cart_app.dependencies_overrides.update( self._get_cart_app_dependencies_overrides() ) app.mount("/cart", cart_app) return app
Changelog
16.0.1.0.2 (2023-10-13)
Misc
Bug Tracker
Bugs are tracked on GitHub 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.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
Laurent Mignon <laurent.mignon@acsone.eu>
Stéphane Bidoul <stephane.bidoul@acsone.eu>
Marie Lejeune <marie.lejeune@acsone.eu>
Simone Orsi <simone.orsi@camptocamp.com>
Maintainers
This module is part of the shopinvader/odoo-shopinvader project on GitHub.
You are welcome to contribute.
Metadata
Release files for odoo-addon-shopinvader-api-cart 18.0.1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| odoo_addon_shopinvader_api_cart-18.0.1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / odoo_addon_shopinvader_api_cart-18.0.1.0.2-py3-none-any.whl
| Download URL | odoo_addon_shopinvader_api_cart-18.0.1.0.2-py3-none-any.whl |
|---|---|
| Size | 22.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0fc744da377e9be25921e0e6184ec33ee309d22a65a5aab131f4188a1f122ef
|
|
BLAKE2b-256 checksum How to use checksums |
b924f6788482c43c7f9b5f42eb6346ffb352a723f43ffc73065e09926bc48fc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|