backend of huihuiblog
phidippides [option]
- help : this help
- version : phidippides version
- filepath : configuration file path
todo list
- read config file
- open default page
- build the frame
{
"status": 200
}
[
{
"id": 1,
"name": "pphui8",
"descript": "hello world",
"tag": "tag",
},
......
]
{
"status": 200,
"blog_root": "https://xx.xxx.xxx",
}
{
"blog_name": "blog_name",
"desc": "blog description",
"value": "pphui8",
"token": "xxxx",
"tag": "tag"
}
# success
{
"status": "success"
}
# failed
{
"status": "failed",
"error": "failed to add blog"
}
tag: 1.test 2.note 3.blog 4.code
// success
{
"status": "success"
}
// failed
{
"status": "failed",
"error": "wrong token"
}GET
[
{
"id":1,
"username":"pphui8",
"url":"pphui8.com",
"value":"test",
"time": "xxxx/xx/xx",
},
.....
]
{
"username": "blog_name",
"url": "blog description",
"value": "pphui8",
"token": "xxx",
"time": "time",
}
# success
{
"status": "success"
}
# failed
{
"status": "failed",
"error": "failed to add blog"
}
// success
{
"status": "success"
}
// failed
{
"status": "failed",
"error": "wrong token"
}GET
{
"test":0,
"note":0,
"blog":0,
"code":0,
}