LoginSignup
0
0

More than 3 years have passed since last update.

HTTPを理解する(curl,Postman編)

Posted at

curl, Postman, HTTPを理解する

・実行項目
curlコマンドで特定の記事を更新してください
curlコマンドで特定の記事を削除してください
postmanで特定の記事を更新してください
postmanで特定の記事を削除してください





1.curlコマンドで特定の記事を更新

以下ターミナル部分のコマンドをたたくと
Image from Gyazo
以下
TitlehogeContent hugaのように更新されました!
Image from Gyazo

2.curlコマンドで特定の記事を削除

以下ターミナル部分のコマンドをたたくと
Image from Gyazo
TitlehogeContent hugaは削除されました!
Image from Gyazo

3.postmanで特定の記事を更新

postmanを使い以下のように更新のリクエストを送信する
Image from Gyazo
Titlei am changemanContent i am updatemanに更新されました!
Image from Gyazo

4.postmanで特定の記事を削除

postmanを使い以下のように削除のリクエストを送信する
Image from Gyazo
Titlei am changemanContent i am updatemanは削除されました!
Image from Gyazo

まとめ

今回の実行項目を通して理解しなければいけないことは、リクエストを送ることができればツールはなんだっていいんだよ!ということ。
一般ユーザーが理解しやすく、使いやすく感覚的に使用(リクエストを送る)するにはブラウザというインタフェースを作ってあげる必要がある。

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