Skip to content

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

Merged
rolodato merged 4 commits intomainfrom
feat/get-identities-endpoint
Dec 19, 2024
Merged

feat: Add GET /api/v1/identities endpoint#135
rolodato merged 4 commits intomainfrom
feat/get-identities-endpoint

Conversation

@rolodato
Copy link
Copy Markdown
Contributor

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
Copy Markdown
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.

Comment thread tests/test_server.py Outdated
Comment thread src/edge_proxy/server.py Outdated
rolodato and others added 2 commits December 19, 2024 10:32
Co-authored-by: Kim Gustyr <kim.gustyr@flagsmith.com>
Co-authored-by: Kim Gustyr <kim.gustyr@flagsmith.com>
@rolodato rolodato merged commit 96a0b49 into main Dec 19, 2024
@rolodato rolodato deleted the feat/get-identities-endpoint branch December 19, 2024 13:41
Comment thread tests/test_server.py
Comment on lines +284 to +285
assert response.status_code == 200
assert data["traits"] == []
Copy link
Copy Markdown
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