WP REST API – reading custom post type

I have checked the WP REST API documentation for the version2-beta9, it is not yet implemented so I guess I have to code my own plugin to work around on it.

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