In the example, your link uses Http POST, not Http GET. That "the method [this] is not allowed" - you need to change the code to execute GET instead.
The link that you publish, which is your source for the client code, has this block:
$.ajax( { url: url, data: json, type: "POST", processData: false, contentType: "application/json", timeout: 10000, dataType: "text", // not "json" we'll parse
Pay attention to type: "POST" where you will need to "GET". I assume you took jQuery from the link you posted, because 405 status means your calling code is wrong, not a service.
source share