Closed Bug 862838 Opened 11 years ago Closed 11 years ago

[MakeAPI] Use GET for Search endpoint

Categories

(Webmaker Graveyard :: MakeAPI, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cade, Assigned: cade)

References

Details

(Whiteboard: [MakeAPI])

Attachments

(1 file, 1 obsolete file)

Currently it's using POST to hit the search API, but it should be GET.
Assignee: nobody → chris
Comment on attachment 739218 [details] [review]
Fix Routes, make Search use GET

R+ from me.
Attachment #739218 - Flags: review?(schranz.m) → review+
Merged: https://github.com/mozilla/MakeAPI/commit/dc799dad16419b6e83ac0bc39129e5d08cf34ef2
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Gotta fix this to use QueryStrings.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
This patch makes the Client library convert the search object into a string, then URL encode it. it's then converted back into a JSON Object on the server.
Attachment #739218 - Attachment is obsolete: true
Attachment #739651 - Flags: review?(schranz.m)
Comment on attachment 739651 [details] [review]
https://github.com/mozilla/MakeAPI/pull/18

As noted in IRC, there seem to be issues with doing search and also applying a sortByField.
Attachment #739651 - Flags: review?(schranz.m) → review-
Comment on attachment 739651 [details] [review]
https://github.com/mozilla/MakeAPI/pull/18

The issues with sorting are present without this patch. file a new bug for it plz.
Attachment #739651 - Flags: review- → review?
Attachment #739651 - Flags: review? → review?(schranz.m)
Comment on attachment 739651 [details] [review]
https://github.com/mozilla/MakeAPI/pull/18

Land this, but don't close the bug until I file a new bug on the mentioned issue.
Attachment #739651 - Flags: review?(schranz.m) → review+
Merged: https://github.com/mozilla/MakeAPI/commit/409c6e98b98804006ac873230501ea6885fb9ade

close once that ticket is filed.
Flags: needinfo?(schranz.m)
Filed bug 864353.
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Flags: needinfo?(schranz.m)
Resolution: --- → FIXED
Attachment mime type: text/plain text/plain → text/x-github-pull-request text/x-github-pull-request
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: