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: docs/API-Nextcloud.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,34 @@
1
1
# Nextcloud APIs
2
2
3
+
## Capabilities
4
+
5
+
The [Nextcloud Capabilities API](https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-api-overview.html#capabilities-api) provides the following information for the Deck app:
6
+
7
+
-`version` Current version of the Deck app running
8
+
-`canCreateBoards` Ability of the current user to create new boards for themselves
9
+
10
+
```
11
+
{
12
+
"ocs": {
13
+
"meta": {
14
+
"status": "ok",
15
+
"statuscode": 200,
16
+
"message": "OK"
17
+
},
18
+
"data": {
19
+
"capabilities": {
20
+
"deck": {
21
+
"version": "0.8.0",
22
+
"canCreateBoards": true
23
+
},
24
+
}
25
+
}
26
+
}
27
+
}
28
+
```
29
+
30
+
31
+
3
32
## Available sharees
4
33
5
34
When sharing a board to a user, group or circle, the possible sharees can be obtained though the files_sharing API.
* (obsolete) ANSI C asctime(): `Sun Aug 3 10:34:12 2019`
53
60
54
-
It is highly recommended to only use the IMF-fixdate format.
61
+
It is highly recommended to only use the IMF-fixdate format. Note that according to [RFC2616](https://tools.ietf.org/html/rfc2616#section-3.3) all HTTP date/time stamps MUST be represented in Greenwich Mean Time (GMT), without exception.
55
62
56
63
Example curl request:
57
64
@@ -197,6 +204,10 @@ Returns an array of board items
197
204
}
198
205
```
199
206
207
+
##### 403 Forbidden
208
+
209
+
A 403 response might be returned if the users ability to create new boards has been disabled by the administrator. For checking this before, see the `canCreateBoards` value in the [Nextcloud capabilties](./API-Nextcloud.md).
210
+
200
211
### GET /boards/{boardId} - Get board details
201
212
202
213
#### Request parameters
@@ -548,7 +559,7 @@ The board list endpoint supports setting an `If-Modified-Since` header to limit
548
559
"owner":"admin",
549
560
"order":999,
550
561
"archived":false,
551
-
"duedate":null,
562
+
"duedate":"2019-12-24T19:29:30+00:00",
552
563
"deletedAt":0,
553
564
"commentsUnread":0,
554
565
"id":10,
@@ -576,7 +587,7 @@ The board list endpoint supports setting an `If-Modified-Since` header to limit
576
587
| description | String | The markdown description of the card |
577
588
| type | String | Type of the card (for later use) use 'plain' for now |
578
589
| order | Integer | Order for sorting the stacks |
579
-
| duedate | timestamp | The duedate of the card or null|
590
+
| duedate | timestamp | The ISO-8601 formatted duedate of the card or null |
580
591
581
592
582
593
```
@@ -585,7 +596,7 @@ The board list endpoint supports setting an `If-Modified-Since` header to limit
0 commit comments