Skip to content

Create/Update Commerce API documentation with Axios examplesΒ #117

@Stalex89

Description

@Stalex89

What are you trying to do?
I have a project which uses decoupled frontend on Nuxt.js and headless Craft as backend/api.
My task is to implement cart logic on the frontend (get cart, add items, remove items, checkout procedure etc.), so I have to use GraphQL/axios calls.
However I find it a little bit challenging to implement all Axios calls for cart, as currently GraphQL supports only product/variant, but not cart/order/checkout; And there are no examples of handling Commerce API with Axios on decoupled frontend (only twig template code examples) in documentation.

What's your proposed solution?
It would be really great to have documentation with the way of handling API with Axios independently from twig code
(with available methods, query parameters, body parameters etc.), at least until Commerce is fully manageable by GraphQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    πŸ’³ CommerceCraft Commerce content related issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions