Defining endpoints for top-level resources