Hi everyone.
I’m new to Shopify and maybe my questions will be illogical or strange. I’ve read all the documentation, but there are a lot of white spots and often I just can’t find the information I need.
I’m creating an application where the user can leave feedback about the store (not about the product, about the store).
I’ve created a CRUD within the app. I have an endpoint through which the admin can create, delete, edit and get reviews.
To do this inside the application, I need to send a request to /api/review (GET, POST, PUT, DELETE).
My next step is to create a theme extension and add 2 new blocks. The review list and the form.
These blocks should interact with the endpoint inside the app, but I don’t understand how to achieve this.
To display the reviews, I want to make a request like this in the liquid blocks:
Or render it on server side.
Please advise me how to achieve this. Maybe I need to use a proxy, but it is not described anywhere how to do it.