When I Connect my Grid to my REST API, it only does the GET and POST Functionality. PUT and DELETE do not Work?

Problem:
I downloaded a basic grid, which I activated the CRUD functionality, however when connecting it with my REST API it only does the GET and POST functionality i.e. DELETE and PUT do not work, when you click on the delete or edit icon, the modal closes but it neither updates nor do I get the query towards my API, I have already tried automatically from the grid like the manual one and I get no result, not even an error but it's failing in my environment where I'm using Vue with Vite.

Solution:
I managed to create you a basic ZingGrid (with Vue) demo with CRUD enabled and I've connected to a server (node-express). CREATE, READ, UPDATE(PUT/PATCH) are all working end to end seamlessly. Please use the setup for reference on how to have your DELETE and UPDATE working.

To run the server (api), navigate to the root directory, install dependencies with npm install and run npm start to spin the server
To run the frontend, navigate to the root directory, install dependencies with npm install and run npm run server to spin the app.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us