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

Add more advanced searching capabilities #4

Open
mscoutermarsh opened this issue May 7, 2012 · 6 comments
Open

Add more advanced searching capabilities #4

mscoutermarsh opened this issue May 7, 2012 · 6 comments

Comments

@mscoutermarsh
Copy link
Contributor

Advanced search that makes use of API search capabilities.

http://build.kiva.org/api#GET*|loans|search

Advanced search fields:

  • partner
  • status
  • gender

Sorting:

  • popularity
  • loan_amount
  • oldest
  • expiration
  • newest
  • amount_remaining
  • repayment_term
@mscoutermarsh
Copy link
Contributor Author

this is going to be dependent on issue 3.

#3

@coderintherye
Copy link
Owner

Yeah once we have #3 in this should be pretty straight-forward as a wraparound. There's PHP and Ruby versions of this already available that I can point people to, not sure that we have a JS version anywhere though, so we'll still need this to happen.

@mscoutermarsh
Copy link
Contributor Author

Could you point to the PHP & Ruby versions?

That would be helpful in getting the JS version started.

@mscoutermarsh
Copy link
Contributor Author

@coderintherye I have a couple questions about the API...

http://build.kiva.org/api#GET*|loans|search

q(string)
A query string against which results should be matched.

What's this mean? Can I specify a name, country, activity...etc... to search by? If so, what's the format? There isn't anything in the docs that I could find.

@coderintherye
Copy link
Owner

@mscoutermarsh Yep, so for instance: http://api.kivaws.org/v1/loans/search.json?country_code=us

Not everything is implemented though. I have some code in PHP for doing country to country_code conversion but there is probably a js library somewhere that does that. If you find something not implemented that we need, let me know so I can see about getting it into the API.

@coderintherye
Copy link
Owner

Alright, so long time since I updated, what basically happened is another engineer here started developing a javascript front end for our API and is going to release it as open source next week. I'll update this issue when that happens, and then any work on this project will be to use that project's javascript code to build a flexible frontend that people can easily customize. Sorry for lack of updates for so long.

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

No branches or pull requests

2 participants