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

Update index server API #600

Open
enkore opened this issue Sep 18, 2016 · 3 comments
Open

Update index server API #600

enkore opened this issue Sep 18, 2016 · 3 comments
Assignees
Milestone

Comments

@enkore
Copy link
Collaborator

enkore commented Sep 18, 2016

(A specification update will also be prepared)

Gist:

  • Search semantics changed
    • Instead of ANDing the terms, they are ORed.

    • Many terms can be specified (email=...&email=....&phone=...)

    • JSON POST is now allowed:

       {"query": [
          {"field": "email", "value": "[email protected]"},
          ...
        ]}
      
    • JSON POST is recommended, because the request line length, which contains the terms if GET is used, is limited by client libraries, HTTP frontends, application servers etc. to fairly low values (expect 4K) -- which is not the case for a JSON POST.

    • Existing code should continue to work

    • Results now contain what matched each identity:

      {"identities": [
           {"public_key": ..........., "matches": [
                {"field": "email", "value": "[email protected]"},
                ...
           ]}
      ]}
      
  • Client authorization will be required on official servers
    • Exact same mechanism as the block server uses.
  • Phone numbers are now normalized. This shouldn't change anything for well-behaved clients that already normalize everything to E.164.
@enkore
Copy link
Collaborator Author

enkore commented Sep 19, 2016

docker image updated. The latest-image doesn't require authorization yet, qabel/infrastructure:reqauth does.

@thechauffeur
Copy link
Member

What is the status of this? Has the mentioned gist already been implemented? Have we decided yet on ORing?

@enkore
Copy link
Collaborator Author

enkore commented Oct 4, 2016

As far as I'm aware nothing has been implemented yet on the core/client side of things.

What's in the gist is in the servers.

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