I have created an API in symfony to consume it in React. How can I add more data to the API from React?
I have only managed to add data through phpMyAdmin. I don’t know if there is a way to create a form in react to be able to update the data from there, from the web deployed. The entire project is local.
2
Answers
You can Create a crud and add the data from there
You can create a controller that persists the info sent to it by the front. Example:
You can send the info to controller through the PATCH method. Yo can make a API with this method