您的位置:首页 > 其它

1

2016-05-06 01:11 204 查看
scp -r root@114.215.93.125:/home/blog/snippets/serializers.py /Users/Fiz/Documents

scp -r root@114.215.93.125:/var/www/html/wordpress /Users/Fiz/Documents

{"id":2,"title":"222","code":"222","linenos":true,"language":"python","style":"friendly"}

curl -X POST -H "Content-Type: application/json" -d '[
{
"name": "Manager",
"description": "someone who manages"
}

]'
http -a POST http://127.0.0.1:8000/snippets/ code="print 789"

{
"id": 5,
"owner": "tom",
"title": "foo",
"code": "print 789",
"linenos": false,
"language": "python",
"style": "friendly"
}

scp -r /Users/Fiz/Documents/blog/snippets/urls.py root@114.215.93.125:/home/blog/snippets/

/etc/init.d/apache2 restart

http --form POST http://www.fizlbq.cn/demo/snippets/ code="print 123"

{

"title": "这是一次侧是的的",
"description": "this is a deo",
"link": null,
"updated": null
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: