Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -X POST http://127.0.0.1:8000/snippets/ -d "code=print 789" -u username:password
- {"id": 5, "owner": "tom", "title": "foo", "code": "print 789", "linenos": false, "language": "python", "style": "friendly"}
- $http.post('http://localhost:8000/snippets/', self.newSnippet)
- .then(fetchSnippets())
- .then(function (response) {
- self.newSnippet = {};
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement