Skip to content

LARailsLearners/react-blog-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

$ curl http://localhost:3000/articles
[{"id":1,"title":"Rails","body":"I like it","created_at":"2016-10-15T23:20:01.691Z","updated_at":"2016-10-15T23:20:01.691Z"}]

$ curl http://localhost:3000/articles -X POST -d "article[title]=Test"
$ curl http://localhost:3000/articles
[{"id":1,"title":"Rails","body":"I like it","created_at":"2016-10-15T23:20:01.691Z","updated_at":"2016-10-15T23:20:01.691Z"},{"id":2,"title":"Test","body":null,"created_at":"2016-10-15T23:42:23.394Z","updated_at":"2016-10-15T23:42:23.394Z"}]

$ curl http://localhost:3000/articles/2 -X DELETE
$ curl http://localhost:3000/articles
[{"id":1,"title":"Rails","body":"I like it","created_at":"2016-10-15T23:20:01.691Z","updated_at":"2016-10-15T23:20:01.691Z"}]

$ curl http://localhost:3000/articles/1 -X PUT -d "article[title]=Test"
$ curl http://localhost:3000/articles
[{"id":1,"title":"Test","body":"I like it","created_at":"2016-10-15T23:20:01.691Z","updated_at":"2016-10-15T23:43:24.090Z"}]
```

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published