How to model search API in rest world? Using get or put verb? Search query is in the request body as json object.
8
@fmueller_bln As a general principle, a search should be done via GET. There are exceptions.
1
1
@stilkov @fmueller_bln how do you deal with the URL size limit?
1
1
@ewolff @fmueller_bln As I said, exceptions. Most of the time, the limit (4-8k these days) won’t bite you. It if does, switch to PRG pattern
1
@simkoelsch @stilkov @ewolff @fmueller_bln also search Engines seems to have problems with URL > 2k: stackoverflow.com/a/417184
1
@phaus @simkoelsch @ewolff @fmueller_bln All true, although not that relevant if you’re talking about API URIs.
1
@stilkov @phaus @ewolff @fmueller_bln I was thinking that the limit also applies to the browsers java script engine which might matter?
1
@simkoelsch @phaus @ewolff @fmueller_bln Good point, didn’t consider that. I honestly wouldn’t know, maybe we’ll just have to try it.
Feb 9, 2016 · 5:22 PM UTC
2




