aboutsummaryrefslogtreecommitdiff
path: root/backend/api/api/Interfaces
diff options
context:
space:
mode:
authorIvan Ljubisavljevic <ivan996sk@gmail.com>2022-05-04 17:40:54 +0200
committerIvan Ljubisavljevic <ivan996sk@gmail.com>2022-05-04 17:40:54 +0200
commitb13d6eadd63998f96ce78c3ac55f11564f3d9958 (patch)
treec65c90920660c655846975027599153fd5d724b4 /backend/api/api/Interfaces
parente09ca08e9a09f4073d15a5341a746d5356da353c (diff)
Izmenjen Experiment na beku. Uskladjen sa frontom.
Diffstat (limited to 'backend/api/api/Interfaces')
-rw-r--r--backend/api/api/Interfaces/IExperimentService.cs3
-rw-r--r--backend/api/api/Interfaces/IJwtToken.cs13
2 files changed, 16 insertions, 0 deletions
diff --git a/backend/api/api/Interfaces/IExperimentService.cs b/backend/api/api/Interfaces/IExperimentService.cs
index 47c86046..2a69cff9 100644
--- a/backend/api/api/Interfaces/IExperimentService.cs
+++ b/backend/api/api/Interfaces/IExperimentService.cs
@@ -8,5 +8,8 @@ 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);
+ void Update(string userId, string id, Experiment experiment);
+
}
} \ No newline at end of file
diff --git a/backend/api/api/Interfaces/IJwtToken.cs b/backend/api/api/Interfaces/IJwtToken.cs
new file mode 100644
index 00000000..2afb6683
--- /dev/null
+++ b/backend/api/api/Interfaces/IJwtToken.cs
@@ -0,0 +1,13 @@
+using api.Models.Users;
+
+namespace api.Models
+{
+ public interface IJwtToken
+ {
+ string GenGuestToken();
+ string GenToken(AuthRequest user);
+ string RenewToken(string existingToken);
+ string TokenToUsername(string token);
+ public string TokenToId(string token);
+ }
+} \ No newline at end of file