I got 401 unauthorized. After installing the plugin Wordpress RestFulAPI now I have
GET http://127.0.0.1/wordpress/wp-json/wp/v2/users/2 resulted in a 403 Forbidden response: {"status":"error","error":"FORBIDDEN","code":"400","error_description":"Sorry, you are not allowed to access REST API."} `