mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 06:25:54 +03:00
[PR #463] [CLOSED] Added OpenAPI support #602
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#602
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/463
Author: @Orhideous
Created: 8/8/2022
Status: ❌ Closed
Base:
master← Head:feature/api-overhaul📝 Commits (10+)
29abe82Use echo webserver to reduce boilerplate code2baf089Fix label in Dockerfilef140b29Described existing API with OpenAPI (without A/A by now)61f5926Set up foundations for future API with oapi-codegen4fe26b5There is already existing way to override data directory, so drop hardcoded one909028bRemove useless code from Error response5f6a625Add database pool to ShioriServer struct4ba7da8Do not hardcode hosts for APIc5cc65cThere is no need to represent IDs as signed integerse162877Add missed bookmarksCount📊 Changes
15 files changed (+1344 additions, -60 deletions)
View changed files
📝
.github/workflows/_gorelease.yml(+1 -1)📝
.github/workflows/_test.yml(+2 -2)📝
.gitignore(+3 -0)📝
Dockerfile(+1 -1)📝
go.mod(+19 -4)📝
go.sum(+76 -39)➕
internal/api/accounts.go(+36 -0)➕
internal/api/auth.go(+16 -0)➕
internal/api/bookmarks.go(+41 -0)➕
internal/api/generate.go(+4 -0)➕
internal/api/server.go(+15 -0)➕
internal/api/tags.go(+31 -0)📝
internal/cmd/root.go(+0 -4)📝
internal/webserver/server.go(+40 -9)➕
openapi.yml(+1059 -0)📄 Description
Relevant discussion: https://github.com/go-shiori/shiori/discussions/462
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.