diff options
Diffstat (limited to 'lib/api/ml/mlflow/experiments.rb')
-rw-r--r-- | lib/api/ml/mlflow/experiments.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/api/ml/mlflow/experiments.rb b/lib/api/ml/mlflow/experiments.rb index 614112f703b..1a501291941 100644 --- a/lib/api/ml/mlflow/experiments.rb +++ b/lib/api/ml/mlflow/experiments.rb @@ -9,6 +9,11 @@ module API class Experiments < ::API::Base feature_category :mlops + before do + check_api_read! + check_api_write! unless request.get? || request.head? + end + resource :experiments do desc 'Fetch experiment by experiment_id' do success Entities::Ml::Mlflow::GetExperiment |