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

feat: Add GET /api/v1/identities endpoint #135

Merged
merged 4 commits into from
Dec 19, 2024

Conversation

rolodato
Copy link
Member

This adds the GET /api/v1/identities endpoint, which accepts only an identifier via query parameters and no traits. It is used by some SDKs (example: JS) when traits are not being used.

Copy link
Member

@khvn26 khvn26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with minor typing-related remarks.

tests/test_server.py Outdated Show resolved Hide resolved
src/edge_proxy/server.py Outdated Show resolved Hide resolved
rolodato and others added 2 commits December 19, 2024 10:32
Co-authored-by: Kim Gustyr <[email protected]>
Co-authored-by: Kim Gustyr <[email protected]>
@rolodato rolodato merged commit 96a0b49 into main Dec 19, 2024
2 checks passed
@rolodato rolodato deleted the feat/get-identities-endpoint branch December 19, 2024 13:41
Comment on lines +284 to +285
assert response.status_code == 200
assert data["traits"] == []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets add an assert on the flags here as well.

@rolodato rolodato restored the feat/get-identities-endpoint branch December 19, 2024 13:44
@rolodato rolodato mentioned this pull request Dec 19, 2024
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

Successfully merging this pull request may close these issues.

3 participants