Skip to content

Hm/add api reference#25

Open
Masaya1022 wants to merge 50 commits into
alphafrom
HM/AddApiReference
Open

Hm/add api reference#25
Masaya1022 wants to merge 50 commits into
alphafrom
HM/AddApiReference

Conversation

@Masaya1022

Copy link
Copy Markdown

変更

  1. docsに各サービスのフォルダを作成。
  2. 各サービスのフォルダにV0.mdファイルを作成。
  3. 各サービスごとの仕様書を作成。
  4. 書き忘れていたものなどを修正。

@Masaya1022 Masaya1022 requested a review from KaRU3-dev December 22, 2025 14:40
@Masaya1022 Masaya1022 self-assigned this Dec 22, 2025

@KaRU3-dev KaRU3-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これはCoreAPIの仕様を外部または開発者に共有するための資料です。なので、gRPCサービスの説明と各gRPCメソッドの説明、リクエストデータとレスポンスデータの説明、認証の有無などを含める必要があります。また、このドキュメントはCoreAPIのものなので内部サービスのドキュメントは含めないでください。マークダウン記法も活用してください

例)
V0SampleService.md

V0SampleService

これは、サンプルのgRPCサービスです。ユーザーに 目的 を提供します。
メソッドは、Method1 / Method2 を実装しています。

Method1

リクエスト: google.protobuf.Empty リクエストの説明
レスポンス:google.protobuf.Empty レスポンスの説明

RPC

rpc Method1(google.protobuf.Empty) returns (google.protobuf.Empty);

- リクエストとレスポンスを含め、説明を追加。
- わかりやすいように、見た目の修正。
- 認証が必要か必要じゃないかの確認を追加。
- リクエストとレスポンスを含め、説明を追加。
- わかりやすいように、見た目の修正。
- 認証が必要か必要じゃないかの確認を追加。
- リクエストとレスポンスを含め、説明を追加。
- わかりやすいように、見た目の修正。
- 認証が必要か必要じゃないかの確認を追加。
- リクエストとレスポンスを含め、説明を追加。
- わかりやすいように、見た目の修正。
- 認証が必要か必要じゃないかの確認を追加
- リクエストとレスポンスを含め、説明を追加。
- わかりやすいように、見た目の修正。
- 認証が必要か必要じゃないかの確認を追加。
- リクエストとレスポンスを含め、説明を追加。
- わかりやすいように、見た目の修正。
- 認証が必要か必要じゃないかの確認を追加。
- リクエストとレスポンスを含め、説明を追加。
- わかりやすいように、見た目の修正。
- 認証が必要か必要じゃないかの確認を追加。
@Masaya1022 Masaya1022 requested a review from KaRU3-dev December 27, 2025 06:33
Comment thread docs/Accounts/V0.md Outdated
Comment on lines +15 to +23
## 認証方法
認証が必要な RPC では、Metadata に以下の形式でトークンを付与します。

## 認証が必要な RPC
- GetProfile
- UpdateProfile
- DeleteAccount

## 認証が不要な RPC

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

全角スペースを除去してください。

Comment thread docs/Accounts/V0.md Outdated
Comment on lines +28 to +32
# 2.サービス一覧

| サービス名 | 説明 |
|--------------|--------------------------------------------------|
| V0ApiService | ユーザーのアカウントを登録するAPI gRPCサービスです。|

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これは、docsフォルダに直接V0.mdファイルを配置し、そこに移動してください。

Comment thread docs/Accounts/V0.md Outdated
Comment on lines +40 to +43
| Register | V0AccountRegisterRequest | google.protobuf.Empty | ユーザーのメールアドレスとパスワードを利用してアカウントを登録するためのメソッド。| 不要 |
| GetProfile | V0AccountGetProfileRequest | V0BaseAccount | ユーザーのIDを利用してアカウントの情報を取得するためのメソッド。| 必要 |
| UpdateProfile | V0AccountUpdateProfileRequest| V0BaseAccount | ユーザーID、更新するユーザー名、更新するアバターURL、更新するメールアドレス、更新する通知設定、更新するパスワード(ハッシュ化済み)、更新するステータスを利用してアカウントの情報を更新するためのメソッド。| 必要 |
| DeleteAccount | google.protobuf.Empty| google.protobuf.Empty | 空を送り、アカウントを削除するためのメソッド。| 必要 |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RPCがどういうリクエストやレスポンスを行うかを別々のセクションにまとめること。また、リクエストやレスポンスがどのようなデータを含めることができるかをまとめてください。

@KaRU3-dev KaRU3-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

全てのファイルに docs/Accounts/V0.md の変更要求が適用されます。質問があれば、このコメントではなく変更要求の方にお願いします。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants