- Post Json data - 除 postman 之外的好選擇
- Authorization: Basic
curl -H "Content-Type: application/json" \
-X POST -d '{"username":"xyz","password":"xyz"}' http://localhost:3000/api/login
curl -H "Content-Type: application/json" \
-H "Authorization: Basic Token" \
-X POST -d '{"username":"xyz","password":"xyz"}' http://localhost:3000/api/login
ref : stackoverflow
沒有留言:
張貼留言