1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

バックエンド未経験でも理解できる API 設計の考え方

1
Posted at

API設計は「バックエンドの仕事」と思われがちですが、
実際にはプロダクト全体の使いやすさを決める重要要素です。

API設計の基本
• APIは「画面」ではなく「概念」を表す
• エンドポイントは名詞で考える
• 状態遷移を意識する

アンチパターン
• /getUserInfo
• /saveData
• 画面ごとにAPIを作る

良いAPIの特徴
• 変更に強い
• 再利用できる
• ドキュメントなしでも予測できる

良いAPIは、フロントとバックエンド両方を幸せにします。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?