From 6dcb8ac6f7372df791398a932301f21fbadff439 Mon Sep 17 00:00:00 2001
From: "vincent.steinman" <vincent.steinmann@etu.hesge.ch>
Date: Wed, 20 Mar 2024 23:11:50 +0100
Subject: [PATCH] fix param/body for add, delete

---
 models/Tag.ts          | 4 ++--
 types/Dojo/ApiRoute.ts | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/models/Tag.ts b/models/Tag.ts
index c12d301..632f657 100644
--- a/models/Tag.ts
+++ b/models/Tag.ts
@@ -3,7 +3,7 @@ import Assignment       from './Assignment';
 import Exercise         from './Exercise';
 
 
-interface Tag {
+interface Tags {
     name: string;
     type: 'Language' | 'Framework' | 'Theme' | 'UserDefined';
 
@@ -13,5 +13,5 @@ interface Tag {
     correctionCommit: CommitSchema | undefined;
 }
 
-export default Tag;
+export default Tags;
 	
\ No newline at end of file
diff --git a/types/Dojo/ApiRoute.ts b/types/Dojo/ApiRoute.ts
index 612488c..66e91a5 100644
--- a/types/Dojo/ApiRoute.ts
+++ b/types/Dojo/ApiRoute.ts
@@ -13,9 +13,9 @@ enum ApiRoute {
     EXERCISE_ASSIGNMENT                 = '/exercises/{{exerciseIdOrUrl}}/assignment',
     EXERCISE_RESULTS                    = '/exercises/{{exerciseIdOrUrl}}/results'
     ADD_TAG                      = '/tags',
-    DELETE_TAG                   = '/tags/{tagid}',
-    PROPOSE_TAG                  = '/tags/proposals',
-    ANSWER_TAG_PROPOSAL          = '/tags/proposals/{tagProposalName}'
+    DELETE_TAG                   = '/tags/{{tageName}}',
+    PROPOSE_TAG                  = '/tags/proposals/{{state}}',
+    ANSWER_TAG_PROPOSAL          = '/tags/proposals/{{tagProposalName}}'
 }
 
 
-- 
GitLab