I am building a service that will push notifications to many other services. It has a couple of different notification types that each consumer may care about, but likely will not care about all of them.
Instead of requiring many different endpoints, I am thinking of making a single endpoint that has a notificationType
parameter. Consumers of the notifications can discard types they don't care about, and integrating other services with the notification service is easier.
Is this a pattern(or anti-pattern)? What is it called? Seems like in the days of XML schemas this was a more common thing than it is with JSON(before my time, but I know of legacy systems that do this). It also reminds me of a reverse proxy, but seems different. I assume it is frowned on now, but don't know how to even search for discussions about it.