Hello all,
This is my first post in this group :) I was wondering what the best practice would be for an auto-complete response from an API. It is one of those weird cases in which the response doesn't really involve a resource.
So for example, if we were talking about names, the client-side would send a string (such as "jon") and wold receive an array of suggestions ("Jonatan, Jonas, Jones...").
Would it be better to have it as a GET request with the parameter on the URL? URL?str=jon
OR
Would a POST/PUT be more appropriate with the string on the payload? {"str": "jon"}
Thanks for your help!