post请求
root@test:/home# curl --location --request POST 'http://127.0.0.1:30800/test' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"currentPageNumber": 1
},
{
"currentPageNumber": 1
}
]'
添加自定义请求头
curl --location --request POST 'http://127.0.0.1/test' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--header 'ssCode: 123' \
--data-raw '[
{
"currentPageNumber": 1
},
{
"currentPageNumber": 1
}
]'