diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2018-02-18 02:38:18 -0300 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2018-02-18 02:38:18 -0300 |
commit | 7f492fb132b44917f2293b8435924de4524d3053 (patch) | |
tree | c85bcfe8f00200a36c7e1677f0024ec0f71d9bb8 /src/clj/queue_api/routes | |
parent | a17538127a37d480cd6efd6d3c44faab4a0a7f76 (diff) | |
download | queue-api-7f492fb132b44917f2293b8435924de4524d3053.tar.gz queue-api-7f492fb132b44917f2293b8435924de4524d3053.tar.bz2 queue-api-7f492fb132b44917f2293b8435924de4524d3053.zip |
Adds doc
Diffstat (limited to 'src/clj/queue_api/routes')
-rw-r--r-- | src/clj/queue_api/routes/services.clj | 9 |
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))))) |