Skip to content

Chowly/Api-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Learning Project

Server

  • Create a new Rails APP
  • Create a Controller
  • Create a Route
  • Test

Controller v1

  • You first controller should return a simple valid json response.

Route v1

  • Should point to the first action in your sample controller, think show or index.

Client v1

Create a .rb file out side of rails, that:

  • Should be standalone, and be ruby as ruby client.rb
  • Loads your Bundle.
  • Loads rubygems.
  • Uses restclient to request the server route. Think (https://localhost:3000/some_resource)
  • Uses Oj gem to parse response to a ruby hash.