|
2 | 2 | (:use [apps.routes.schemas.callback] |
3 | 3 | [common-swagger-api.schema] |
4 | 4 | [common-swagger-api.schema.analyses :only [AnalysisIdPathParam]] |
5 | | - [common-swagger-api.schema.callbacks :only [AgaveJobStatusUpdateParams AgaveJobStatusUpdate]] |
| 5 | + [common-swagger-api.schema.callbacks :only [TapisJobStatusUpdate]] |
6 | 6 | [ring.util.http-response :only [ok]]) |
7 | 7 | (:require [apps.service.callbacks :as callbacks])) |
8 | 8 |
|
9 | 9 | (defroutes callbacks |
10 | | - (POST "/de-job" [] |
11 | | - :body [body (describe DeJobStatusUpdate "The updated job status information.")] |
12 | | - :summary "Update the status of of a DE analysis." |
13 | | - :description "The jex-events service calls this endpoint when the status of a DE analysis |
14 | | - changes" |
15 | | - (ok (callbacks/update-de-job-status body))) |
| 10 | + (POST "/de-job" [] |
| 11 | + :body [body (describe DeJobStatusUpdate "The updated job status information.")] |
| 12 | + :summary "Update the status of of a DE analysis." |
| 13 | + :description "The jex-events service calls this endpoint when the status of a DE analysis changes" |
| 14 | + (ok (callbacks/update-de-job-status body))) |
16 | 15 |
|
17 | | - (POST "/agave-job/:job-id" [] |
18 | | - :path-params [job-id :- AnalysisIdPathParam] |
19 | | - :body [body (describe AgaveJobStatusUpdate "The updated job status information.")] |
20 | | - :query [params AgaveJobStatusUpdateParams] |
21 | | - :summary "Update the status of an Agave analysis." |
22 | | - :description "The DE registers this endpoint as a callback when it submts jobs to Agave." |
23 | | - (ok (callbacks/update-agave-job-status job-id (:lastUpdated body) params)))) |
| 16 | + (POST "/tapis-job/:job-id" [] |
| 17 | + :path-params [job-id :- AnalysisIdPathParam] |
| 18 | + :body [body (describe TapisJobStatusUpdate "The updated job status information.")] |
| 19 | + :summary "Update the status of an Tapis analysis." |
| 20 | + :description "The DE registers this endpoint as a callback when it submts jobs to Tapis." |
| 21 | + (ok (callbacks/update-tapis-job-status job-id body)))) |
0 commit comments