No description, website, or topics provided.
Ruby CSS JavaScript CoffeeScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
log
public
spec
vendor/assets
.gitignore
.rspec
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

#API-HLT

Rails API for creating, updating, and listing blog posts and categories.

To test drive the Rails API:

  • Git clone the repository
  • Run $ bundle
  • Migrate and seed the SQLite3 databases (rake db:migrate and rake db:seed)
  • When you seed the database, an auth_token is printed out for you to use in testing.
  • Start the server, $ rails s, and browse to localhost:3000
  • View existing category's list and associated blog posts
  • Create and update blogs posts (through curl or Postman)
  • To visualize the JSON data, add .json to the end of the URL
  • Or use a tool like the Postman - REST Client Chrome extension to visualize and manipulate the JSON data
    • Create a custom Accept header preset
      • Click Manage Presets and create a header preset called JSON Accept
      • Set the key to Accept
      • Set its value to application/json
    • Create a custom Authorization header preset
      • Click Manage Presets and create a header preset called JSON Authorization
      • Set the key to Authorization
      • Set its value to Token token="tokenGoesHere"
    • Create and access the JSON data with the following URL / HTTP verb combinations
  • To run the request specs, call $ rspec from the command line