### 問題
調試restAPI時需要獲取token
### 解決方案
通過CURL在命令行進行http請求獲取token
```
curl -XPOST -i \
--url http://172.31.47.5:5000/v3/auth/tokens \
--header 'content-type: application/json' \
--data '{"auth": {"identity": {"methods": ["password"],"password": {"user": {"name": "admin","domain": {"name": "Default"},"password": "xxx"}}},"scope": {"project": {"domain": {"id": "default"},"name": "admin"}}}}'
```
在響應的header中可以找到token