0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

REST APIについて

Posted at

REST APIとは

REST APIとはRESTの原則に沿った形で設計されたAPIのことです。
4つの原則に従って設計されてます。

1アドレス可能性

URIを通して、誰が見てもすぐに何を指してるのかがわかること。
http://api.sample.com/v1/users
上記のコードはuserの情報を取得しようとしてるんだなというのが一目でわかります。

ステートレスサーバー

ここに関しては以前に記事を書いてますのでみてみてください!
ステートレスについて

接続性

接続性とは、情報の内部に別の情報やその情報へのリンクを含めることができることです。

統一インターフェース

 取得・作成・更新・削除などのHTTPメソッドを利用すること。
HTTPメソッド
以前に記事を書いてますのでみてみください!

APIは奥が深い。。。

参考記事

RESTful APIとは何なのか

RESTful APIとは?

学習中図書

・オライリー・ジャパン Web API the Good Parts
・Webを支える技術

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?