Postman ↔ cURL
離線將 Postman collection 轉換為 cURL 指令,亦可反向轉換。
cURL 轉換結果
Authenticate
curl --location --request POST 'https://api.example.com/auth/v1/sync' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer token_x' \
--data-raw '{"user":"admin"}'