API: Move the URL patterns into the resource class