From 48bd546122842012a65572fa436fe58cfd965ca7 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 18 Feb 2018 16:41:25 -0300 Subject: Adds more features and more tests --- src/clj/queue_api/routes/services.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/clj/queue_api/routes') diff --git a/src/clj/queue_api/routes/services.clj b/src/clj/queue_api/routes/services.clj index 7e9fc98..d432517 100644 --- a/src/clj/queue_api/routes/services.clj +++ b/src/clj/queue_api/routes/services.clj @@ -26,7 +26,7 @@ :return [{:type String :jobs s/Int}] :body-params [agent_id :- String] :summary "Get summary of an agent" - (ok (db/get-agent agent_id)))) + (ok (db/sum-agent agent_id)))) (context "/job" [] :tags ["job"] @@ -41,7 +41,7 @@ :return {:job_request {:job_id String :agent_id String}} :body-params [agent_id :- String] :summary "Request a job to a given agent" - (ok (db/request-job agent_id)))) + (ok (db/dequeue-job agent_id)))) (context "/queue" [] :tags ["queue"] -- cgit v1.2.3