-
Notifications
You must be signed in to change notification settings - Fork 464
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
Historical Score Endpoint Introduction #2956
Comments
Some tech details / hints:
@lebraat FYI on the pagination |
My vote -- we stay consistent with the following: |
@lebraat how should we communicate to existing integratoooors that this endpoint requires special privileges? |
Let's include this paragraph within the API Playground: To access this endpoint, you must submit your use case and be approved by the Passport team. To do so, please fill out the following form, making sure to provide a detailed description of your use case. The Passport team typically reviews and responds to form responses within 48 hours. |
Sweet thanks! @lebraat / @nutrina one more question. There currently is logic to pull snapshots or scores from a single day. Here is a description of the logic we have currently. Since the address is part of the url, I imagine we should remove scenario #3, but should we maintain or update the remaining logic? Scenario 1 - Snapshot for 1 addresses Scenario 2 - Snapshot for 1 address and timestamp Scenario 3 - Snapshot for all addresses |
@tim-schultz we only need the history for 1 address: Please double-check this in the doc from @lebraat |
Correct. We only want one scenario moving forward: |
Gotcha. So if they pass a timestamp it should return a snapshot of the user's score at that time. Otherwise it will return paginated results of the scores over time |
We should make the timestamp required and that should be the only function of this endpoint. We don't want to deliver paginated results of scores over time. |
Alrighty removing pagination and more than one score in the results. Leaving this commit here for engineering in case we revisit this in the future. I fixed some of the pagination logic and added tests |
@lebraat last question :) Shall we deprecate the v1 historical endpoint since we now require special privileges to access this data? |
We can fully retire it. We never formally announced it, so no one should be using it. Thanks, Tim! |
User Story:
As a developer,
I want to only allow partners with explicit permission to access the historical score endpoint,
So that I can ensure secure and controlled usage of this feature.
Acceptance Criteria
GIVEN a request for historical scores,
WHEN the request is made by an allowlisted API key,
THEN access should be granted to the endpoint.
Product & Design Links:
N/A
Tech Details:
skip_refresh
parameter from all endpoints.Open Questions:
Notes/Assumptions:
The text was updated successfully, but these errors were encountered: