mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 06:25:54 +03:00
[GH-ISSUE #769] "Edit bookmark" API docs do not mention required fields correctly #367
Labels
No labels
component:backend
component:builds
component:builds
component:extension
component:frontend
component:readability
database
database:mysql
database:postgres
database:sqlite
feature:ebooks
github_actions
good first issue
hacktoberfest
note:duplicate?
note:fixed?
note:out-of-scope?
os:windows
priority:high
priority:low
pull-request
resolution:as-intended
resolution:cant-reproduce
resolution:duplicate
resolution:fixed
resolution:wontfix
tag:TBD
tag:big-task
tag:help-wanted
tag:huge-data
tag:meta
tag:more-info
tag:next
tag:no-stale
tag:requires-migrations
tag:research
tag:security 🛡️
tag:stale
tag:waiting-for-assignee
type:bug
type:documentation
type:enhancement
type:meta
type:ux
user:cli
user:web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shiori#367
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @msfjarvis on GitHub (Oct 27, 2023).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/769
Data
Describe the bug / actual behavior
The API docs for the edit bookmark action say that you need to provide an
idto identify the bookmark being edited, and then provide the modified fields.After creating a bookmark, if I try to edit it via the API and introduce a tag with the following JSON body
The server returns a HTTP 500 error with the message:
title must not be empty.After I add the title, I still get an HTTP 500 error but with the message:
failed to clean URL: URL is not validAfter both title and url are added to the JSON, API request succeeds
This is in disagreement with the documentation since in this situation neither the title nor url were being modified, and hence should not have been required.
Expected behavior
The API docs either mention that the title and URL fields are always required, or the server is modified to match the documentation.
Notes
I discovered the problem from integration testing while trying to write an API client for Shiori to use in my Android app
I've gotten rid of the "Steps to reproduce" heading since it seemed tedious and unnecessary to note down all the steps I did in httpie, but I can do it if it helps, just ask.