Files
kontextwerk/api/collections/dummyCartEndpoint.yml
2025-10-02 08:54:03 +02:00

39 lines
884 B
YAML

# just here since bgicommerces graphql api regarding cart and checkout isnt working (only cart create is possible, otherwise it always says cart is not existant)
########################################################################
# cart
########################################################################
name: dummyCartEndpoint
meta:
hideInNavigation: true
openapi:
disabled: true
permissions:
public:
methods:
get: true
post: true
put: false
delete: false
user:
methods:
get: false
post: false
put: false
delete: false
hooks:
get:
read:
type: javascript
file: hooks/cart/get_read.js
post:
validate:
type: javascript
file: hooks/cart/post_validate.js
fields: