svendahlstrand / ica-api

👛 Inofficiell dokumentation över det API som backar appen ICA.
167 stars 29 forks source link

New endpoint for recipe search. #11

Closed moelleer closed 4 years ago

moelleer commented 4 years ago

Updated documentation with a replaced endpoint for the recipe search.

svendahlstrand commented 4 years ago

Hey @moelleer,

Thanks for your contribution. I can't get the example you provided to work, though. I get the following:

curl \
  -H 'Authenticationticket: 5058A1DE55[…]' \
  'https://handla.api.ica.se/api/recipes/searchwithfilters?RecordsPerPage=40&PageNumber=1&Phrase=pizza'

HTTP/1.1 404 Not Found
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Date: Tue, 28 Apr 2020 06:15:55 GMT
Content-Length: 171
Set-Cookie: TS01841c8a=[…]; Path=/; Domain=.handla.api.ica.se

{"Message":"No HTTP resource was found that matches the request URI 'http://handla.api.ica.se/api/recipes/searchwithfilters?RecordsPerPage=40&PageNumber=1&Phrase=pizza'."}

Does it work in your end?

moelleer commented 4 years ago

Hi @svendahlstrand,

I notices the sorting parameter was missing, added it and it should work now.

svendahlstrand commented 4 years ago

Thanks for keeping the documentation up to date, @moelleer, much appreciated.