header


curl -i --header "access_token=0e0fddab-6a29-4db7-abc2-6b93961087be" http://localhost:3000/external

cookie


curl -i --cookie "token=566812eb-43c8-425f-a640-264a38003848" http://localhost:3000/external

post


curl -i -d "user_id=xixicat&pwd=demo" -X POST http://localhost:3000/login

get


curl -i -X GET http://localhost:8080/api/repository/tasks

文件上传


curl -v  -F"content=@/Users/xixicat/downloads/1472807724.png"  http://localhost:3000/api/tasks/197510/attachments\?name\=t1&type\=application/octet-stream

curl -i -X POST -H "Content-Type: multipart/form-data"  -F  "file=@/Users/xixicat/downloads/1472807724.png" http://localhost:3006/api/tasks/197510/attachments\?name\=t1

doc


codecraft
11.9k 声望2k 粉丝

当一个代码的工匠回首往事时,不因虚度年华而悔恨,也不因碌碌无为而羞愧,这样,当他老的时候,可以很自豪告诉世人,我曾经将代码注入生命去打造互联网的浪潮之巅,那是个很疯狂的时代,我在一波波的浪潮上留下...