Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

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 jerempy force-pushed the feat-add-feeds-api branch from 1252a39 to 900178c Compare October 4, 2023 17:59
@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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants