From 2889b562e64993482bd13fd806af8ed0865bab8b Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 14 Feb 2026 11:52:56 +0900 Subject: refactor: migrate API from GraphQL to REST (TypeSpec/OpenAPI) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the entire GraphQL stack (gqlgen, urql, graphql-codegen) with a TypeSpec → OpenAPI 3.x pipeline using oapi-codegen for Go server stubs and openapi-fetch + openapi-typescript for the frontend client. Co-Authored-By: Claude Opus 4.6 --- frontend/src/graphql/queries.graphql | 94 ------------------------------------ 1 file changed, 94 deletions(-) delete mode 100644 frontend/src/graphql/queries.graphql (limited to 'frontend/src/graphql/queries.graphql') diff --git a/frontend/src/graphql/queries.graphql b/frontend/src/graphql/queries.graphql deleted file mode 100644 index 0b0e25c..0000000 --- a/frontend/src/graphql/queries.graphql +++ /dev/null @@ -1,94 +0,0 @@ -query GetFeeds { - feeds { - id - url - title - fetchedAt - isSubscribed - unreadCount - } -} - -query GetUnreadArticles($feedId: ID, $after: ID, $first: Int) { - unreadArticles(feedId: $feedId, after: $after, first: $first) { - articles { - id - feedId - guid - title - url - isRead - feed { - id - title - isSubscribed - } - } - pageInfo { - hasNextPage - endCursor - } - } -} - -query GetReadArticles($feedId: ID, $after: ID, $first: Int) { - readArticles(feedId: $feedId, after: $after, first: $first) { - articles { - id - feedId - guid - title - url - isRead - feed { - id - title - isSubscribed - } - } - pageInfo { - hasNextPage - endCursor - } - } -} - -query GetFeed($id: ID!) { - feed(id: $id) { - id - url - title - fetchedAt - isSubscribed - articles { - id - guid - title - url - isRead - } - } -} - -query GetArticle($id: ID!) { - article(id: $id) { - id - feedId - guid - title - url - isRead - feed { - id - title - isSubscribed - } - } -} - -query GetCurrentUser { - currentUser { - id - username - } -} -- cgit v1.3-1-g0d28