Commit be1252fa authored by chenhan wang's avatar chenhan wang
Browse files

版本1.0测试

parent b7ae5b4d
config.yaml config.yaml
backend/files backend/files
.history/ .history/
.idea/**
conf.yaml
docs/**
\ No newline at end of file
.idea/**
conf.yaml
docs/**
\ No newline at end of file
test test
curl -F api_key=<api_key> -F api_secret=<api_secret> –F image=@test2.txt -F return_portrait=1 curl -F api_key=<api_key> -F api_secret=<api_secret> –F image=@test2.txt -F return_portrait=1
curl localhost/api/file/send '{\"fileName\":\"test2.png\"}' -F "file=@./test.png" -H "token:222" -v curl localhost/api/file/send '{\"fileName\":\"test2.png\"}' -F "file=@./test.png" -H "token:222" -v
curl localhost/api/file/send -d "{\"fileName\":\"test2.png\"}"
curl localhost/api/file/send -F "file=@./test.png" -H "token:222" -v
curl -d 'use=sei' localhost/api/print/query
curl -d '{\"user\":\"jkj\"}' localhost/api/print/query
curl -d "{\"keyword\":\"user\",\"value\":\"wnag\"}" localhost/api/print/query
curl -d "{\"keyword\":\"user\",\"value\":\"wnag\"}" localhost/api/print/body
curl -X POST localhost/api/SQL/adduser -H 'Content-Type: application/json' -d '{"name":"Joe","passwd":"joe@labstack"}'
curl -X POST localhost/api/SQL/adduser -H 'Content-Type: application/json' -d‘{\"name\":\"na\",\"passwd\":\"pass\"}’
curl -X POST localhost/api/SQL/test -H 'Content-Type: application/json' -d‘{\"name\":\"na\",\"passwd\":\"pass\"}’
curl http://127.0.0.1:8080/api/SQL/adduser -X POST -H "Content-Type: application/json" -d {"name":"1","passwd":"934"}
//有效的
curl localhost/api/SQL/adduser -X POST -H "Content-Type: application/json" -d "{\"name\":\"add\",\"passwd\":\"yyy\"}"
{"id":22,"name":"add","passwd":"yyy"}
curl localhost/api/file/recv -F "file=@./test2.txt" -H "token:222" -v
curl localhost/api/file/send -X POST -H "Content-Type: application/json" -d “{\"fileName\":\"test2\",\"fileType\":\"txt\"}”
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment