-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Post basket #28
Comments
Hey @tudorels, it seems like you're trying to create a basket without supplying any object as the payload. Can you please post the request payload of the |
https://getpantry.cloud/apiv1/pantry/myPantryID/basket/testbasket like I saw in docs to create a basket |
Is mandatory to insert some data in basket. I can not create an empty basket? Why? |
Unfortunately yes, a basket cannot be empty. For now, would you be able to work around this limitation? In the meantime, I'll figure out a way to allow users to create empty baskets in their pantry. |
It's ok for now. I'm also interested in adding new data in basket along with other data already existing in basket, like adding new record in other database system. It is posible? I've seen the other issue and you said it will be posible with put method. It will be very usefull to add new record in basket. Thanks! |
Ok sounds good! I agree that adding new data to existing baskets is definitely useful, and ill probably go the |
Maybe, I don't understand how is working ... I've made a basket "users" and I tried to add some records like this: |
@tudorels The For your use-case, perhaps look into structuring your basket with an array of users like so: That way you can add new users to your array by sending a The response of this |
Hello,
I tried to create a basket, but I only get error:
Could not create basket: Validation failed: An instance of Block has failed the validation:
Thanks
The text was updated successfully, but these errors were encountered: