From 976a51ef52516d2fb1fbc86cdea2540f33d2fe78 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Fri, 21 Aug 2015 01:02:14 +0200 Subject: [PATCH] Rename entry in operation. --- accountant/api/views/{entries.py => operations.py} | 4 ++-- accountant/frontend/static/js/{entries.js => operations.js} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename accountant/api/views/{entries.py => operations.py} (97%) rename accountant/frontend/static/js/{entries.js => operations.js} (99%) diff --git a/accountant/api/views/entries.py b/accountant/api/views/operations.py similarity index 97% rename from accountant/api/views/entries.py rename to accountant/api/views/operations.py index f2c41d9..b3a4803 100644 --- a/accountant/api/views/entries.py +++ b/accountant/api/views/operations.py @@ -169,7 +169,7 @@ class SoldsResource(Resource): return Operation.get_ohlc_per_day_for_range(session, **kwargs).all() -api_api.add_resource(OperationListResource, "/entries") -api_api.add_resource(OperationResource, "/entries/") +api_api.add_resource(OperationListResource, "/operations") +api_api.add_resource(OperationResource, "/operations/") api_api.add_resource(CategoriesResource, "/categories") api_api.add_resource(SoldsResource, "/solds") diff --git a/accountant/frontend/static/js/entries.js b/accountant/frontend/static/js/operations.js similarity index 99% rename from accountant/frontend/static/js/entries.js rename to accountant/frontend/static/js/operations.js index ced05a1..3c7405d 100644 --- a/accountant/frontend/static/js/entries.js +++ b/accountant/frontend/static/js/operations.js @@ -18,7 +18,7 @@ accountantApp .factory("Operation", [ "$resource", function($resource) { return $resource( - "/api/entries/:id", { + "/api/operations/:id", { id: "@id" } );