summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2014-10-06 21:41:31 +0200
committermguetlein <martin.guetlein@gmail.com>2014-10-06 21:41:31 +0200
commit1c146314a3c956364dabbea7515dca9449dd0a8b (patch)
tree6b28cdecf90493f55122bde7809b055c44926331
parentee0951cdcd9aed1d62f7c160a05de55efce67d1e (diff)
add head methods for each servicetb2.3.0
-rw-r--r--lib/opentox.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb
index b99fe92..bd5415c 100644
--- a/lib/opentox.rb
+++ b/lib/opentox.rb
@@ -148,13 +148,17 @@ module OpenTox
# Default methods, may be overwritten by derived services
# see http://jcalcote.wordpress.com/2008/10/16/put-or-post-the-rest-of-the-story/
+ # HEAD methods only used if there is no GET method in the particular service
+ # E.g. "head "/#{SERVICE}/:id/?"" is overwritten by "get '/task/:id/?'"
+ # The following HEAD methods are only used by the feature service
+
# HEAD route for service check
- # algorithm, compound and validation overwrite this
+ # algorithm, dataset, model, compound, and validation overwrite this
head "/#{SERVICE}/?" do
end
# HEAD request for object in backend
- # algorithm, dataset, compound and validation overwrite this
+ # algorithm, dataset, model, compound, and validation overwrite this
head "/#{SERVICE}/:id/?" do
halt 404 unless FourStore.head(@uri.split('?').first)
end