Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing cart REST routes #2501

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
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
21 changes: 21 additions & 0 deletions docs/api/rest_api/rest_api_reference/input/ibexa-cart.raml
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,24 @@ post:
description: Error - The user is not authorized to read this Cart.
404:
description: Error - Cart not found.
/validate:
post:
displayName: Cart Validation
description: Validates a Cart against constraints
headers:
Accept:
description: If set, the Cart Constraint Violations are returned in XML or JSON format.
example: |
application/vnd.ibexa.api.CartConstraintViolationList+xml
application/vnd.ibexa.api.CartConstraintViolationList+json
responses:
200:
body:
application/vnd.ibexa.api.CartConstraintViolationList+xml:
type: CartConstraintViolationList
application/vnd.ibexa.api.CartConstraintViolationList+json:
type: CartConstraintViolationListWrapper
/authorize:
post:
displayName: Cart Authorization
description: Return the CSRF token needed by anonymous users to manipulate their Cart
Loading