You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/forms/operations.tsp
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ namespace CoreSystem.Forms {
23
23
opgetFormById(@pathid:uuid):Form;
24
24
25
25
@summary("List Forms")
26
-
@doc("List all existing forms.")
26
+
@doc("List all existing forms. Archived forms are excluded by default.")
27
27
@route("/forms")
28
28
@get
29
29
oplistForms():Form[];
@@ -89,6 +89,15 @@ namespace CoreSystem.Forms {
89
89
@bodyresponse:FormPublishResponse;
90
90
};
91
91
92
+
@summary("Archive Form")
93
+
@doc("Archive a form. Set status to 'ARCHIVED'. Archived forms are hidden from default lists but can still be accessed directly by ID.")
94
+
@route("/forms/{id}/archive")
95
+
@post
96
+
oparchiveForm(@pathid:uuid): {
97
+
@statusCodestatusCode:200;
98
+
@bodyresponse:Form;
99
+
};
100
+
92
101
@summary("Get Google Sheet Email")
93
102
@doc("Get the Gmail address that should be added to Google Sheet permissions. This address needs to be granted access to the Google Sheet so the system can modify the form.")
0 commit comments