1
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
}
浙公网安备 33010602011771号