Skip to content

Commit f625f05

Browse files
authored
feat: OpenAPIのバージョンを1.0.0に上げる (#252)
1 parent 5de5931 commit f625f05

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

typing-app/src/components/molecules/RankingTableBody.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import RankingTableRow from "./RankingTableRow";
22
import EmptyTableRow from "./EmptyTableRow";
3-
import type { components } from "@/libs/api/v0";
3+
import type { components } from "@/libs/api/v1";
44
import type { ColumnDefinition } from "../organism/RankingTabs";
55

66
export type RankingTableBodyProps = {

typing-app/src/components/molecules/RankingTableRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { components } from "@/libs/api/v0";
1+
import type { components } from "@/libs/api/v1";
22
import styles from "@/assets/sass/molecules/RankingTableRow.module.scss";
33
import type { ColumnDefinition } from "../organism/RankingTabs";
44

typing-app/src/components/organism/RankingTabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Pagination } from "../molecules/Pagination";
55
import RefreshButton from "../atoms/RefreshButton";
66
import { useCallback, useEffect, useState } from "react";
77
import { client } from "@/libs/api";
8-
import type { components } from "@/libs/api/v0";
8+
import type { components } from "@/libs/api/v1";
99
import { showErrorToast } from "@/utils/toast";
1010
import styles from "@/assets/sass/organism/RankingTabs.module.scss";
1111

typing-app/src/libs/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import createClient from "openapi-fetch";
2-
import { paths } from "./v0";
2+
import { paths } from "./v1";
33

44
// ブラウザから使うときはこっち
55
export const client = createClient<paths>({ baseUrl: process.env.NEXT_PUBLIC_API_URL });
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import "server-only";
22

33
import createClient from "openapi-fetch";
4-
import { paths } from "./v0";
4+
import { paths } from "./v1";
55

66
// サーバーで使うときはこっち
77
export const client = createClient<paths>({ baseUrl: process.env.API_URL });

typing-server/openapi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ info:
33
title: Typing API
44
description: >-
55
This is Typing API
6-
version: 0.0.1
6+
version: 1.0.0
77
servers:
88
- url: http://localhost:8080
99
description: ローカル開発環境
1010
- url: https://example.com
1111
description: 本番環境
1212
tags:
1313
- name: other
14-
description: いい名前が思いつかない(仮)
14+
description: いい名前が思いつかない
1515
- name: user
16-
description: ユーザー関係(仮)
16+
description: ユーザー関係
1717
- name: score
18-
description: スコア関係(仮)
18+
description: スコア関係
1919
paths:
2020
/health:
2121
get:

0 commit comments

Comments
 (0)