bundle
rake db:create
rake db:migrate
rake db:seed
rails s
curl -X GET http://localhost:3000/api/v1/posts -H "Accept: application/json"
curl -X GET "http://localhost:3000/api/v1/posts?sort=title" -H "Accept: application/json"
| Name | Name | Last commit date | ||
|---|---|---|---|---|
bundle
rake db:create
rake db:migrate
rake db:seed
rails s
curl -X GET http://localhost:3000/api/v1/posts -H "Accept: application/json"
curl -X GET "http://localhost:3000/api/v1/posts?sort=title" -H "Accept: application/json"