Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for search issues #921

Closed
mvl22 opened this issue Jan 28, 2020 · 4 comments
Closed

API for search issues #921

mvl22 opened this issue Jan 28, 2020 · 4 comments

Comments

@mvl22
Copy link
Member

mvl22 commented Jan 28, 2020

The StreetFocus integration needs an API so that we can search for issues.

@nikolai-b
Copy link
Contributor

So you want to add a search term to: https://www.cyclescape.org/api#!/issues/getApiIssues

Do you want the title and the issue body searched?

@nikolai-b nikolai-b added the waiting-feedback Fixes or development can't start till the submitter provides more information. label Feb 4, 2020
@mvl22
Copy link
Member Author

mvl22 commented Feb 5, 2020

Sorry, yes, spec wasn't clear. Basically just a name search, giving the same result as the Issues tab at:

https://camcycle.cyclescape.org/overview/search?utf8=%E2%9C%93&query=chisholm+trail&button=#issue-results

which presumably searches title and issue body indeed. Essentially we just need an API equivalent to that UI result.

@nikolai-b nikolai-b removed the waiting-feedback Fixes or development can't start till the submitter provides more information. label Feb 5, 2020
@nikolai-b
Copy link
Contributor

This is not equivalent as the order will not be the same but I've added a search term.

@mvl22
Copy link
Member Author

mvl22 commented Feb 7, 2020

A search for 'chisholm trail' seems to give the same result 6 times over. I wonder if this is getting each thread rather than the issue itself.

/api/issues?per_page=10&term=chisholm%20trail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants