• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JQuery Auto Completion with REST API

 
Ranch Hand
Posts: 507
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic