Refactor SERVER_URI to API