mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 06:25:54 +03:00
[GH-ISSUE #659] APIv1: Bookmarks #331
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#331
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 @fmartingr on GitHub (Jul 21, 2023).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/659
Originally assigned to: @fmartingr on GitHub.
Migrate the legacy bookmarks API to the new router and API specification
Acceptance criteria
/api/v1/bookmarks:GETfor list,POSTfor creation._creation_options?) instead of mixed with the object attributes./api/v1/bookmarks/:id:PUT/PATCHfor modification,GETfor retrieving information,DELETEfor deletion./api/v1/bookmarks/:id/cache:POSTcall that allows a single bookmark cache regeneration (re-download archive, rebuild ebook, ...)./api/v1/bookmarks/cache:POSTcall that allows multiple bookmarks cache regeneration (re-download archive, rebuild ebook, ...).Relates to: #640
Fixes: #634
@Monirzadeh commented on GitHub (Jan 21, 2024):
Hi.
I don't know how you want to impeliment API for adding bookmark but if it possible please return something that we can distinguish between internal error and bookmark exist.
Currently shiori return status 500 if bookmark exist.
@fmartingr commented on GitHub (Jan 21, 2024):
Yeah, on successful creation the response would be
201and on duplicated409.