How to create Stroe API controller for APP plugin

We are sending requests to the APP backend server during checkout to confirm loading. How to create a controller to communicate with the External server.

Maybe to explain a bit more what you like to do ?

So a controller would be needed if you like to sent data to the Shopware system. Or do you like to call a 3rd party service somehow ?

@chamaw Thanks for the reply. Like sending post data to 3rd party services. In javascript, it is restricted due to CORS, Similarly sending API calls to shop to fetch shop data.

hmm so you can use file_get_content, curl or a lib like guzzleHttp to fetch the data ?