summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-04-26 22:18:37 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-04-26 22:18:37 +0200
commit28ca8f124cea3d8ec7f8f1c8639f03336cda1aeb (patch)
treeec579c38959959933eacc074d2414bef11e8f2ff /docs
parentca64b65fd128b3feee3091c36286a1d5c2d38318 (diff)
meta data
Diffstat (limited to 'docs')
-rw-r--r--docs/api/v2/README.md46
1 files changed, 43 insertions, 3 deletions
diff --git a/docs/api/v2/README.md b/docs/api/v2/README.md
index 311fbd828..cb9369745 100644
--- a/docs/api/v2/README.md
+++ b/docs/api/v2/README.md
@@ -475,8 +475,48 @@ The attributes mean the following:
* When marking an item read, all items with the same fingerprint should also be marked as read.
-## Update API
+## Updater
TBD
-## Meta Data API
-TBD \ No newline at end of file
+## Meta Data
+The retrieve meta data about the app, use the following request:
+
+* **Method**: GET
+* **Route**: /
+
+The following response is being returned:
+
+Status codes:
+* **200**: Feed was deleted successfully
+* Other ownCloud errors, see **Response Format**
+
+
+In case of an HTTP 200, the the following response is returned:
+
+```json
+{
+ "version": "9.0.0",
+ "issues": {
+ "improperlyConfiguredCron": false
+ },
+ "user": {
+ "userId": "john",
+ "displayName": "John Doe",
+ "avatar": {
+ "data": "asdiufadfasdfjlkjlkjljdfdf",
+ "mime": "image/jpeg"
+ }
+ }
+}
+```
+
+The attributes mean the following:
+* **version**: Abitrary long text, News app version
+* **issues**: An object containing a dictionary of issues which need to be displayed to the user:
+ * **improperlyConfiguredCron**: Boolean, if true this means that no feed updates are run on the server because the updater is misconfigured
+* **user**: user information:
+ * **userId**: Abitrary long text, the login name
+ * **displayName**: Abitrary long text, the full name like it's displayed in the web interface
+ * **avatar**: an avatar object, null if none is set
+ * **data**: Abitrary long text, the user's image encoded as base64
+ * **mime**: Abitrary long text, avatar mimetype