diff options
author | Ivan Ljubisavljevic <ivan996sk@gmail.com> | 2022-05-04 20:27:55 +0200 |
---|---|---|
committer | Ivan Ljubisavljevic <ivan996sk@gmail.com> | 2022-05-04 20:27:55 +0200 |
commit | 0e945bd6f428edb13718aed247209f215b93e735 (patch) | |
tree | 6f3afb219c4ec35baeac500545bb45c6bb010911 /backend/api/api/Interfaces | |
parent | 3ac7a37690765d6c116463dc8a6ef08b18afea50 (diff) |
Update, delete - Dataset, Model, Experiment. Public models...
Diffstat (limited to 'backend/api/api/Interfaces')
-rw-r--r-- | backend/api/api/Interfaces/IDatasetService.cs | 3 | ||||
-rw-r--r-- | backend/api/api/Interfaces/IExperimentService.cs | 3 | ||||
-rw-r--r-- | backend/api/api/Interfaces/IModelService.cs | 6 |
3 files changed, 7 insertions, 5 deletions
diff --git a/backend/api/api/Interfaces/IDatasetService.cs b/backend/api/api/Interfaces/IDatasetService.cs index f493a2ec..2f7d0010 100644 --- a/backend/api/api/Interfaces/IDatasetService.cs +++ b/backend/api/api/Interfaces/IDatasetService.cs @@ -5,7 +5,8 @@ namespace api.Services { public interface IDatasetService { - Dataset GetOneDataset(string userId, string name); + Dataset GetOneDataset(string userId, string id); + Dataset GetOneDatasetN(string userId, string name); Dataset GetOneDataset(string id); List<Dataset> SearchDatasets(string name); List<Dataset> GetMyDatasets(string userId); diff --git a/backend/api/api/Interfaces/IExperimentService.cs b/backend/api/api/Interfaces/IExperimentService.cs index 2a69cff9..311560e8 100644 --- a/backend/api/api/Interfaces/IExperimentService.cs +++ b/backend/api/api/Interfaces/IExperimentService.cs @@ -8,8 +8,9 @@ namespace api.Services public Experiment Get(string id); public List<Experiment> GetMyExperiments(string id); public Experiment Get(string uploaderId, string name); - Experiment GetOneExperiment(string userId, string name); + Experiment GetOneExperiment(string userId, string id); void Update(string userId, string id, Experiment experiment); + void Delete(string userId, string id); } }
\ No newline at end of file diff --git a/backend/api/api/Interfaces/IModelService.cs b/backend/api/api/Interfaces/IModelService.cs index 00299979..8c4543de 100644 --- a/backend/api/api/Interfaces/IModelService.cs +++ b/backend/api/api/Interfaces/IModelService.cs @@ -3,14 +3,14 @@ using api.Models; namespace api.Services { - public interface IModelService - { + public interface IModelService + { Model GetOneModel(string userId, string name); Model GetOneModel(string id); List<Model> GetMyModels(string userId); List<Model> GetMyModelsByType(string userId, string problemType); List<Model> GetLatestModels(string userId); - //List<Model> GetPublicModels(); + List<Model> GetPublicModels(); Model Create(Model model); Model Replace(Model model); void Update(string userId, string name, Model model); |