keybase / keybase-issues

A single repo for managing publicly recognized issues with the keybase client, installer, and website.
902 stars 37 forks source link

REST search API requirements #711

Open thialfihar opened 10 years ago

thialfihar commented 10 years ago

Using the search API to query keybase.io, I have noticed the following things:

Naming

It would be great if /user/autocomplete.json returned these fields as well:

But perhaps "autocomplete.json" is not the right resource to search for that data. Is there some /user/search.json or somesuch that I missed?

malgorithms commented 10 years ago

this is a great list, thanks!

thialfihar commented 10 years ago

Thanks for adding the key size and algorithm to autocomplete.json! That's very useful.

But I'd like to add them to the naming lists:

I think it might be time for a search API that isn't used for autocomplete and that has a new and clean result structure.

Sorry about the nitpicking, but I think an API can dangerously easily become messy with many new features and loose naming conventions. :)

timbray commented 10 years ago

Meh, it’s just JSON, who cares what the field names are, or the details of the nesting, as long as they’re reasonably mnemonic. Ruby/python/JS programmers might be a little more upset since they tend to map JSON straight into native data structures, but often that’s unwise, a source of problems. I’ve gotten really used to picking pieces out of wire data formats to populate my runtime objects, it seems like the default reasonable way to behave, these days.

zQueal commented 10 years ago

Meh, it’s just JSON, who cares what the field names are

It may be just JSON, but to attract programmers some form of continuity needs to be established. No one wants to interface with software that's difficult to deal with.