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: expose notifications api #33

Merged
merged 4 commits into from
Aug 2, 2024
Merged

feat: expose notifications api #33

merged 4 commits into from
Aug 2, 2024

Conversation

anxolin
Copy link
Contributor

@anxolin anxolin commented May 28, 2024

This PR exposes the notifications API in BFF.

image

Right now the Nofications are coming from the CMS, but some notifications can be added to some other sources (like a database, etc), also the notifications can be enhanced with on-chain data, or post-processed, for this reason, I think is convenient to expose it through BFF.

This would also allow us to remove the dependency from CoW Swap to the CMS and reduce the permissions of reading the notifications from the public endpoint (now is a securitized request)

Test

Run locally and execute:
curl -i http://localhost:3010/accounts/0x79063d9173C09887d536924E2F6eADbaBAc099f5/notifications

@anxolin anxolin force-pushed the add-notifications-api branch from 0344b93 to ce1dd8e Compare July 30, 2024 16:06
@anxolin anxolin requested a review from a team July 30, 2024 17:32
@anxolin anxolin marked this pull request as ready for review July 30, 2024 17:32
@anxolin anxolin requested a review from alfetopito July 31, 2024 15:08
@anxolin anxolin force-pushed the add-notifications-api branch from f863673 to 8458d79 Compare August 2, 2024 17:42
@anxolin
Copy link
Contributor Author

anxolin commented Aug 2, 2024

Merging to consolidate and test the release. I address issues raised after the merge

@anxolin anxolin merged commit fc7ea09 into main Aug 2, 2024
4 checks passed
@anxolin anxolin deleted the add-notifications-api branch August 2, 2024 17:49
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.

2 participants