go get github.com/gin-gonic/gin
go get github.com/mattn/go-sqlite3
go get code.google.com/p/go-uuid/uuid
go build
1.install mingw
URL: http://www.mingw.org/
2.Add the path to MinGW gcc to your Windows PATH environment variable
/users?limit=10
Default is 20.
[
{
"id" : 1,
"user_name" : "mijs_taro"
}, ...
]
{
"user_name" : "mijs_taro",
"password" : "Xie9aek7",
"password_confirm" : "Xie9aek7"
}
ID
1
{
"user_name" : "mijs_taro",
"password" : "Xie9aek7"
}
{
"session_id" : "d8f1e91c-2764-4d8c-9fb0-0f1ced5dd77a"
}
/posts?limit=10
Default is 20.
[
{
"user_id" : 1,
"user_name" : "mijs_taro",
"message" : "Hello, Go !",
"url" : "http://example.com/"
}, ...
]
{
"session_id" : "d8f1e91c-2764-4d8c-9fb0-0f1ced5dd77a",
"message" : "Hello, Go !",
"url" : "http://example.com/"
}
ID
1
Post multipart/form-data
or post a image binary directly.
Image url.