Open jcklie opened 5 years ago
I would require external recommender to implement OPTIONS
for their remote URL. This resource just should respond with 200 and set accept to json. The checker on INCEpTION side then would just query that when pressing a button in the traits.
I believe the equivalent of a "ping" is a HTTP HEAD request, no?
I think both would work out. I did not find too much information about HTTP ping, so I am not sure.
A head request probably already works with the existing implementation without any additional effort. Would be worth a try.
My code does not listen to HEAD, just GET and POST
Interesting - I thought that HEAD might be implicitly handled by the web framework you are using.
Is your feature request related to a problem? Please describe. When creating an recommender, it is required to check whether it can be reached by INCEpTION. Right now, one needs to create it, go to annotations and try it out to see whether it works. In error case, one needs to read the log files which is not nice, especially for not self-hosted systems.
Describe the solution you'd like Add a connection checker button next to the recommender settings for the remote URL.