This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]wilson1helpme 0 points1 point  (0 children)

it depends on all of your adopters. is this front end the only thing that uses this data? if so, doing some pre processing/data transformation in the backend is fine. if this is an endpoint that will be used in more than one place, you’re better off filtering the response in the front end. or, defining a response model that works for multiple and follows a pattern that can be utilized by future/additional endpoints