summaryrefslogtreecommitdiff
path: root/internal/api/client/markers
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/markers')
-rw-r--r--internal/api/client/markers/markersget.go6
-rw-r--r--internal/api/client/markers/markerspost.go8
2 files changed, 14 insertions, 0 deletions
diff --git a/internal/api/client/markers/markersget.go b/internal/api/client/markers/markersget.go
index 5706e74cd..b0b2297a8 100644
--- a/internal/api/client/markers/markersget.go
+++ b/internal/api/client/markers/markersget.go
@@ -60,10 +60,16 @@ import (
// schema:
// "$ref": "#/definitions/markers"
// '400':
+// schema:
+// "$ref": "#/definitions/error"
// description: bad request
// '401':
+// schema:
+// "$ref": "#/definitions/error"
// description: unauthorized
// '500':
+// schema:
+// "$ref": "#/definitions/error"
// description: internal server error
func (m *Module) MarkersGETHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/markers/markerspost.go b/internal/api/client/markers/markerspost.go
index 199d370d3..d96ffa4be 100644
--- a/internal/api/client/markers/markerspost.go
+++ b/internal/api/client/markers/markerspost.go
@@ -63,12 +63,20 @@ import (
// schema:
// "$ref": "#/definitions/markers"
// '400':
+// schema:
+// "$ref": "#/definitions/error"
// description: bad request
// '401':
+// schema:
+// "$ref": "#/definitions/error"
// description: unauthorized
// '409':
+// schema:
+// "$ref": "#/definitions/error"
// description: conflict (when two clients try to update the same timeline at the same time)
// '500':
+// schema:
+// "$ref": "#/definitions/error"
// description: internal server error
func (m *Module) MarkersPOSTHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,