How to add a custom REST field to limit data when fetching?

How to add a custom REST field to limit data when fetching?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)