WordPress REST API Endpoint (Authors and Categories latest posts)

You can’t do it by default with WordPress, but it is possible with a custom endpoint. You can find the docs in the REST API handbook: https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/

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