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

Add API endpoints for default delivery channels for a customer #742

Merged
merged 20 commits into from
Mar 12, 2024

Conversation

JackLewis-digirati
Copy link
Contributor

@JackLewis-digirati JackLewis-digirati commented Feb 19, 2024

Resolves #720

This pull requests adds API endpoints to GET, GET by Id, PUT, POST and DELETE default delivery channels

@JackLewis-digirati JackLewis-digirati changed the title Feature/default delivery channel api Add API endpoints for default delivery channels for a customer Feb 19, 2024
@JackLewis-digirati JackLewis-digirati marked this pull request as ready for review February 28, 2024 12:04
@JackLewis-digirati JackLewis-digirati requested a review from a team as a code owner February 28, 2024 12:04
Copy link
Member

@donaldgray donaldgray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at this branch in IDE it might be useful to add new namespaces under API.Features.DeliveryChannels.Requests. As-is there's a big list and almost duplicate requests for DeliveryChannelPolicy and DefaultDeliveryChannel

e.g. as-is

API/
  Features/
    DeliveryChannels/
      Requests/
        CreateCustomerDefaultDeliveryChannel.cs
        CreateDeliveryChannelPolicy.cs
        DeleteCustomerDefaultDeliveryChannel.cs
        DeleteDeliveryChannelPolicy.cs
        GetCustomerDefaultDeliveryChannel.cs
        ...

could be

API/
  Features/
    DeliveryChannels/
      Requests/
        Defaults/
          CreateCustomerDefaultDeliveryChannel.cs
          DeleteCustomerDefaultDeliveryChannel.cs
          GetCustomerDefaultDeliveryChannel.cs
        Policies/
          CreateDeliveryChannelPolicy.cs
          DeleteDeliveryChannelPolicy.cs
        ...

Also general question on naming - do we need "Customer" in controller name, and all of the requests? Would CreateDefaultDeliveryChannel etc suffice?

@JackLewis-digirati JackLewis-digirati force-pushed the feature/defaultDeliveryChannelApi branch 3 times, most recently from 5992e3d to 3e99ac2 Compare March 1, 2024 17:41
@JackLewis-digirati JackLewis-digirati force-pushed the feature/defaultDeliveryChannelApi branch from 3e99ac2 to c77e764 Compare March 5, 2024 12:14
Copy link
Member

@donaldgray donaldgray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - repository test project referencing API project seems off though.

@JackLewis-digirati JackLewis-digirati merged commit 7b95110 into develop Mar 12, 2024
9 checks passed
@JackLewis-digirati JackLewis-digirati deleted the feature/defaultDeliveryChannelApi branch March 12, 2024 10:36
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.

API endpoints to manage default delivery channels for customer
3 participants