aboutsummaryrefslogtreecommitdiff
path: root/backend/api/api/Interfaces
diff options
context:
space:
mode:
authorDanijel Anđelković <adanijel99@gmail.com>2022-05-04 18:17:41 +0200
committerDanijel Anđelković <adanijel99@gmail.com>2022-05-04 18:17:41 +0200
commit87ac1232664b577fcd5d393226522a27ef11e7df (patch)
tree7f9c0517830f863b333a624ecc599e2a802ecf52 /backend/api/api/Interfaces
parentc746191b225f3e59f4b7b0cee6a01c2e5bf00271 (diff)
parentb13d6eadd63998f96ce78c3ac55f11564f3d9958 (diff)
Merge branch 'redesign' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into redesign
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