everything is in the title, I want to create a button that refreshes the page. I've checked on internet, but it's absolutly unclear to me mostly because I don't know how to integrate Javascript within a drupal 8 module.
I guess other people's have being througth that. Could anyone of them help me ?
I have tried to create a view named Aricles(should have been Articles) which displays all contents of type articles. I have attached a link that shows the screenshot. GET request is giving 406 error, if I type http://some_address/api/articles.
But if I type http://some_address/api/articles?_format=json, it displays the content. Is there a way not to type that ?_format=json everytime . Can you please let me know.