diff options
author | Benjamin Brahmer <info@b-brahmer.de> | 2022-08-06 12:02:48 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2022-08-06 12:09:30 +0200 |
commit | 794b608650b56a3bc91e7beb7062e17ee191b25a (patch) | |
tree | 223610e54862b704c779d0a99a1d19cd7fc84497 | |
parent | f2521e18f2e6c50be9f245ad0c178c62de01f118 (diff) |
add item types to api docs
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
-rw-r--r-- | docs/api/api-v1-2.md | 24 | ||||
-rw-r--r-- | docs/api/api-v1-3.md | 24 | ||||
-rw-r--r-- | lib/Db/Item.php | 2 |
3 files changed, 49 insertions, 1 deletions
diff --git a/docs/api/api-v1-2.md b/docs/api/api-v1-2.md index 0665bba72..3d8b22426 100644 --- a/docs/api/api-v1-2.md +++ b/docs/api/api-v1-2.md @@ -399,6 +399,30 @@ The following attributes are **not sanitized** meaning: including them in your w * **mediaThumbnail** * **mediaDescription** +#### Types +| Name | Default | Types | +|------------------|---------|--------------| +| author | null | string\|null | +| body | | string\|null | +| contentHash | | string\|null | +| enclosureLink | | string\|null | +| enclosureMime | | string\|null | +| feedId | | int | +| fingerprint | | string\|null | +| guid | | string | +| guidHash | | string | +| id | | int | +| lastModified | \"0\" | string\|null | +| mediaDescription | | string\|null | +| mediaThumbnail | | string\|null | +| pubDate | | int\|null | +| rtl | false | bool | +| starred | false | bool | +| title | | string\|null | +| unread | false | bool | +| updatedDate | | string\|null | +| url | | string\|null | + #### Get items * **Status**: Implemented * **Method**: GET diff --git a/docs/api/api-v1-3.md b/docs/api/api-v1-3.md index 98e09b622..7464efb09 100644 --- a/docs/api/api-v1-3.md +++ b/docs/api/api-v1-3.md @@ -399,6 +399,30 @@ The following attributes are **not sanitized** meaning: including them in your w * **mediaThumbnail** * **mediaDescription** +#### Types +| Name | Default | Types | +|------------------|---------|--------------| +| author | null | string\|null | +| body | | string\|null | +| contentHash | | string\|null | +| enclosureLink | | string\|null | +| enclosureMime | | string\|null | +| feedId | | int | +| fingerprint | | string\|null | +| guid | | string | +| guidHash | | string | +| id | | int | +| lastModified | \"0\" | string\|null | +| mediaDescription | | string\|null | +| mediaThumbnail | | string\|null | +| pubDate | | int\|null | +| rtl | false | bool | +| starred | false | bool | +| title | | string\|null | +| unread | false | bool | +| updatedDate | | string\|null | +| url | | string\|null | + #### Get items * **Status**: Implemented * **Method**: GET diff --git a/lib/Db/Item.php b/lib/Db/Item.php index 4fe9bc19c..06e1091f4 100644 --- a/lib/Db/Item.php +++ b/lib/Db/Item.php @@ -181,7 +181,7 @@ class Item extends Entity implements IAPI, \JsonSerializable $search_string = ""; foreach ($input_list as $value) { - if (is_null($value)){ + if (is_null($value)) { $search_string .= ""; } else { html_entity_decode($value); |