add item types to api docs

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
This commit is contained in:
Benjamin Brahmer 2022-08-06 12:02:48 +02:00
parent a66d62d1d7
commit 932b88a39c
3 changed files with 49 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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);