How to exclude or include categories in wp rest API without query parameters?

How to exclude or include categories in wp rest API without query parameters?