From 7f492fb132b44917f2293b8435924de4524d3053 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 18 Feb 2018 02:38:18 -0300 Subject: Adds doc --- src/clj/queue_api/routes/services.clj | 9 ++++++--- 1 file changed, 6 insertions(+), 3 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 5d6d6cb..7e9fc98 100644 --- a/src/clj/queue_api/routes/services.clj +++ b/src/clj/queue_api/routes/services.clj @@ -12,6 +12,7 @@ :description "Manages agent resources"}}}} (context "/agent" [] + :tags ["agent"] (PUT "/" [] :body-params [id :- String, name :- String, primary_skillset :- [String], secondary_skillset :- [String]] :summary "Add a new agent" @@ -24,10 +25,11 @@ (POST "/" [] :return [{:type String :jobs s/Int}] :body-params [agent_id :- String] - :summary "Get a summary of an agent" + :summary "Get summary of an agent" (ok (db/get-agent agent_id)))) (context "/job" [] + :tags ["job"] (PUT "/" [] :body-params [id :- String, type :- String, urgent :- Boolean] :summary "Add a new job" @@ -38,15 +40,16 @@ (POST "/" [] :return {:job_request {:job_id String :agent_id String}} :body-params [agent_id :- String] - :summary "Request a job for a agent" + :summary "Request a job to a given agent" (ok (db/request-job agent_id)))) (context "/queue" [] + :tags ["queue"] (GET "/" [] :return {:completed [String] :processing[String] :unassigned [String]} - :summary "Get a summary of an agent" + :summary "Get a summary of the queue" (ok (db/sum-queue))))) -- cgit v1.2.3