mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-24 22:15:52 +03:00
[PR #965] feat: Sync API #898
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#898
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?
📋 Pull Request Information
Original PR: https://github.com/go-shiori/shiori/pull/965
Author: @Monirzadeh
Created: 8/17/2024
Status: 🔄 Open
Base:
master← Head:sync📝 Commits (10+)
8cd9b33just return bookmarks after specific timestamp89bea5bsend modified and deleted item in databasecaac394make swaggerb3abc95Merge branch 'master' into sync939b6ccpagginate for sync request7412ca3make swagger8e70402if ids be empty than just return modified bookmarksed0926cshow deletd bookmark once and just in first page3b73f02update filter for LastSync and deleted function for postgress760c920test autentication for sync endpoint📊 Changes
10 files changed (+685 additions, -1 deletions)
View changed files
📝
docs/swagger/docs.go(+84 -0)📝
docs/swagger/swagger.json(+84 -0)📝
docs/swagger/swagger.yaml(+56 -0)📝
internal/database/database.go(+5 -0)📝
internal/database/database_test.go(+44 -0)📝
internal/database/mysql.go(+48 -0)📝
internal/database/pg.go(+49 -0)📝
internal/database/sqlite.go(+50 -1)📝
internal/http/routes/api/v1/bookmarks.go(+108 -0)📝
internal/http/routes/api/v1/bookmarks_test.go(+157 -0)📄 Description
This PR is trying to add sync functionality to shiori.
This API get last sync and list of id in client side as return deleted item and modified item from last sync.
This PR did sync without need to store deleted time, so close #903.
TODO:
this todolist can be update overtime
We have bellow problems in CI:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.