Let's expriment HTTP!
HTTP methods
- GET
- POST
- PUT
- DELETE
- ..etc
Get Insomnia
https://insomnia.rest/download/
Create a new request
with Insomnia




登入 YunNET
with Insomnia
https://yunnet.zeinok.eu.org



取得個人資料

Let's try
Realworld API
https://conduit.productionready.io/api/
註冊
POST https://conduit.productionready.io/api/users
{
"user": {
"username": "hugo",
"email": "hugohugo@gmail.com",
"password": "hugohugo"
}
}

登入
POST https://conduit.productionready.io/api/users/login

取得個人資料
請先複製 token

設定 HTTP 要求方法及不傳送 Body


成功

Import Pre-defined RealWorld API data



https://raw.githubusercontent.com/gothinkster/realworld/master/api/Conduit.postman_collection.json


編輯變數

{
"APIURL": "https://conduit.productionready.io/api",
"USERNAME": "hugohugo",
"EMAIL": "hugohugo@gmail.com",
"PASSWORD": "hugohugo",
"token": "登入後在此放入token"
}

Before

After

接下來你自己試 :)
挑戰
透過 Insomnia 更改 trainee 底下 IP 的 MAC