diff --git a/README.md b/README.md index e57f0f5..a664df8 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Create a virtual environment and run it: ## Using the API The API exposes the following endpoints: - - GET `/` — return views and downloads for all items that Solr knows about¹. Accepts `limit` and `page` query parameters for pagination of results. + - GET `/items` — return views and downloads for all items that Solr knows about¹. Accepts `limit` and `page` query parameters for pagination of results. - GET `/item/id` — return views and downloads for a single item (*id* must be a positive integer). ¹ We are querying the Solr statistics core, which technically only knows about all items that have either views or downloads. diff --git a/app.py b/app.py index c6a5552..32de53e 100644 --- a/app.py +++ b/app.py @@ -59,7 +59,7 @@ class ItemResource: resp.media = statistics api = falcon.API() -api.add_route('/', AllItemsResource()) +api.add_route('/items', AllItemsResource()) api.add_route('/item/{item_id:int}', ItemResource()) # vim: set sw=4 ts=4 expandtab: