I have a question regarding Drupal 8, which I've never worked with before but are now assigned a project in Drupal 8. I need to build a module which contains a search function that points to this URL ("http://systembevakningsagenten.se/api/json/1.0/searchProduct.json?query=[SEARCHWORD]") where "[SEARCHWORD]" is replaced with whatever the searchword is, and then the results are displayed. And if there are more than 5 results, a pager should be shown.
I need this thing to be packaged as a module, so that it can be used on any Drupal 8 site.
Does anyone know how to do it, or if you know any how-tos, that would be great!