Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JQuery Auto Completion with REST API  RSS feed

 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please have a look at the below code



The code is used for auto completing JQuery text field. You can find the plugin here - https://jqueryui.com/autocomplete/#remote-jsonp

However, I have a `REST` link where I would like to retrieve the information. I tried replacing the link in the above example, but it didn't work. A sample REST link can be found here - http://www.thomas-bayer.com/sqlrest/CUSTOMER/ (I not using this anyway).

So, how can I use this same JQuery auto completion with REST API? I also posted the same question in here but seems no response.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
REST is an architectural style, not an API.

If your URL identifies a resource used in a HTTP GET request, it does not matter whether or not the server you send the request to is designed as a RESTful service, a GET is a GET.

Does that URL work as a stand alone GET?

Bill
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!