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 feeds api #52

Merged
merged 1 commit into from
Oct 4, 2023
Merged

feat-add feeds api #52

merged 1 commit into from
Oct 4, 2023

Conversation

jerempy
Copy link
Contributor

@jerempy jerempy commented Oct 4, 2023

Issue: #49

Adds the feeds api methods per https://api.novu.co/api#/Feeds/FeedsController_createFeed

Adds unit tests for new methods

I did not not create an interface for the feeds service as I didn't see the other ones, such as on events.go actually being used anywhere, and I didn't see the need for creating one since the interface doesn't need to be passed anywhere as well. I think leaving it out could help with setting a pattern for future contributors for not writing code that is not implemented.

I did the same thing with the JsonResponse type in models.go. So that it doesn't continue to a pattern of multiple structs that are all the same thing.

i embedded the JsonResponse into the Subscriber and Events response types - so they are the same. I did this instead of deleting them to account for backwards compatibility in case there is anyone using this as a package and upgrade -this way their code doesn't break. For this same reason I didn't delete the unused interfaces in other files.

@Cliftonz
Copy link
Contributor

Cliftonz commented Oct 4, 2023

@jerempy Please resolve the conflicts

@jerempy
Copy link
Contributor Author

jerempy commented Oct 4, 2023

Updated and resolved. should be all good to go

@Cliftonz Cliftonz merged commit 4c63a38 into novuhq:master Oct 4, 2023
1 check passed
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