How can I set max limit for API for specific content-type

How can I set max limit for API for specific content-type?

make a middleware that adds your limit/rate limit

I should use middleware for specific content-type and change just limit value from query?
Is is possible to set limit as 150, you in config you have max limit 100?
Could you provide an example?

in config/api.js/ts you cna set maxLimit of the amount of records it will show

I need not for all apis, only for specific

You need to set that for all apis.
and then have a custom middleware that limits it lower

Great, thanks!