aboutsummaryrefslogtreecommitdiff
path: root/src/clj/queue_api/routes/services.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/clj/queue_api/routes/services.clj')
-rw-r--r--src/clj/queue_api/routes/services.clj9
1 files changed, 6 insertions, 3 deletions
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)))))