I'm working to integrate a Drupal 8 site's content into a 3rd-party search tool. To get our data, the 3rd party requires us to post JSON to their API. Having never done this before, what is conceptually needed to accomplish this in Drupal 8? The site in question is around 5-6k nodes.
My initial thoughts are a custom module with a route that calls a controller function that creates an http client. The client gets its data from a json View. So when I visit the route, it pushes the data to the endpoint? That is my rough guess and any insight is much appreciated.