I have a problem with client and server side in Next.js v13. There is an api. I brought the data from this API by making a request to the server side section. I sent the data (prop) in the server side to the client side. then I used this data in client side. How can I send the data I use back to the server side? I want to get new data by sending the data I processed in the client side to the API again.
Note: I can't do API, fetch requests on client side. That's why there is a server side in between. I want to send my parameters to server side and get updated data again. Please help with this.
Look example picture:
I take data from API:
I send it to the server side and run the function to pull the data: and then send it to the client side as a prop:
I took the data from the client side as a prop. I used and modified this data. I want to create a parameter again and send a request to the API. I couldn't find how to request the a API and get the updated new data...: