Skip to main content
Odoo Community Association

Shopinvader API Cart

Beta License: AGPL-3 shopinvader/odoo-shopinvader

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

Authors

  • ACSONE SA/NV

Contributors

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.2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-shopinvader-api-cart 18.0.2.0.0
File Interpreter ABI Platform Actions
odoo_addon_shopinvader_api_cart-18.0.2.0.0-py3-none-any.whl Python 3 none any Details for odoo_addon_shopinvader_api_cart-18.0.2.0.0-py3-none-any.whl

Release files / odoo_addon_shopinvader_api_cart-18.0.2.0.0-py3-none-any.whl

Download URL odoo_addon_shopinvader_api_cart-18.0.2.0.0-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47a632d1d8a92ce20f32428c1ee34bc7553d9f3b5412ed6f691e439bfe4fa042
BLAKE2b-256 checksum
How to use checksums
5d17fe8b640468c644a57f238954a81d47cbc438239d2fb8eaf134298dc110a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for odoo-addon-shopinvader-api-cart 18.0.2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page