# 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`
```jsonld=
{
"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`
----

----

----
## 編輯變數

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

----
Before

----
After

----
接下來你自己試
:)
---
# 挑戰
透過 Insomnia 更改 trainee 底下 IP 的 MAC
{"metaMigratedAt":"2023-06-15T05:22:01.632Z","metaMigratedFrom":"Content","title":"Let's expriment HTTP!","breaks":true,"contributors":"[{\"id\":\"486fb0fb-49cc-45a4-9ced-07fb547a3cbe\",\"add\":2344,\"del\":244}]"}