aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSun Howwrongbum <sun@adrenosapient.com>2017-02-12 03:51:30 +0530
committerSun Howwrongbum <sun@adrenosapient.com>2017-02-12 03:51:30 +0530
commitbc44f365301c094d6698e2af8e73ac022c0008ef (patch)
tree2250c3a7c490b94880feda707527a8c96d865538
parent6e7a8b75d1e0a28ba51337bf2e8ae003c62eda20 (diff)
downloadtrackermap-server-bc44f365301c094d6698e2af8e73ac022c0008ef.tar.gz
trackermap-server-bc44f365301c094d6698e2af8e73ac022c0008ef.tar.bz2
trackermap-server-bc44f365301c094d6698e2af8e73ac022c0008ef.zip
[swagger] Add /permissions/calendar and define CalendarPermission
-rw-r--r--swagger.json51
1 files changed, 50 insertions, 1 deletions
diff --git a/swagger.json b/swagger.json
index eacc589b3..e2ce04847 100644
--- a/swagger.json
+++ b/swagger.json
@@ -384,6 +384,37 @@
}
}
},
+ "/permissions/calendars": {
+ "post": {
+ "summary": "Link a Calendar to a User",
+ "parameters": [
+ {
+ "$ref": "#/parameters/CalendarPermission"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/CalendarPermission"
+ }
+ }
+ }
+ },
+ "delete": {
+ "summary": "Remove a Calendar from a User",
+ "parameters": [
+ {
+ "$ref": "#/parameters/CalendarPermission"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ }
+ }
+ }
+ },
"/positions": {
"get": {
"summary" : "Fetches a list of Positions",
@@ -1354,6 +1385,16 @@
}
}
},
+ "CalendarPermission": {
+ "properties": {
+ "userId": {
+ "type": "integer"
+ },
+ "calendarId": {
+ "type": "integer"
+ }
+ }
+ },
"GroupGeofence": {
"properties": {
"groupId": {
@@ -1579,7 +1620,7 @@
"description": "base64 encoded file in iCalendar format"
},
"atributes": {}
- }
+ }
}
},
"parameters": {
@@ -1663,6 +1704,14 @@
"$ref": "#/definitions/GeofencePermission"
}
},
+ "CalendarPermission": {
+ "name": "body",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CalendarPermission"
+ }
+ },
"User": {
"name": "body",
"in": "body",