Create GET /subscription_user endpoint #429
Labels
complexity: advanced
Time needed to do this ticket will be large e.g. 2-3+ days
help wanted
Extra attention is needed
maintenance
Maintenance / chore work
state: approved
Ready to go. Not blocked or pending.
Milestone
Overview
We want to start breaking up the GET /user/me request and only fetch information on the pages it is needed. This is starting with subscriptions. We also are misusing types across the site so we want to improve the ways of transferring data. Note that we don't want any DTOs to be used in the service, only in the controllers. We are also phasing out all ITypes such as ISubscriptionUser. All formatting needs to happen in the controller. I have labelled this ticket as advanced, not because of the complexity, but because of the confidence needed in controller/service interactions and appropriate types.
Action Items
SubscriptionUserService.getSubscriptions(userId)
{
id: string;
subscriptionId: string;
subscriptionName: string;
subscriptionInfo: string;
createdAt: Date;
cancelledAt: Date | null;
}
The text was updated successfully, but these errors were encountered: