Kovah / LinkAce

LinkAce is a self-hosted archive to collect links of your favorite websites.
https://www.linkace.org
GNU General Public License v3.0
2.63k stars 163 forks source link

No lists and tags properties in API response #629

Closed semelyanov86 closed 1 year ago

semelyanov86 commented 1 year ago

Bug Description

According to documentation, link response consist of following fields: { "id": 84, "user_id": 1, "url": "https://duckduckgo.com/", "title": "string", "description": "string", "icon": "string", "is_private": true, "status": 1, "check_disabled": true, "lists": [], "tags": [], "created_at": "2020-03-09T19:33:23.000000Z", "updated_at": "2020-03-09T19:33:23.000000Z", "deleted_at": "2020-03-09T19:33:23.000000Z" } But in fact, there is no lists or tags fields in response

How to reproduce

  1. Send GET to api/v1/links
  2. Check that in data[*] there is no links and tags fields

Expected behavior

Expected to see all fields according to documentation

Logs

No response

Screenshots

No response

LinkAce version

1.11.4

Setup Method

PHP

Operating System

Linux (Ubuntu, CentOS,...)

Client details

Send request vie insomnia

Kovah commented 1 year ago

Ah, that is actually an error in the documentation. The link list does not contain list and tags for all returned links. They are only returned for single links.

Kovah commented 1 year ago

API docs are updated.