Feature/717 read api

This is a matter of _style_ but instead of having a long `if` branch, you could turn the logic around.

````java
  if (apiUser == null) {
    throw new BadCredentialsException("Authorization Required");
  }

  // The rest of the code remains not indented
````