Skip to content

paircolumbus/build-an-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build a Rails API

Rails is really great for building quick APIs out of the box. In this drill, we'll be implementing a couple of standards and GraphQL.

Instructions:

CompanyAPI is the new hotness in Silicon Valley. The founders of the company Mike & Jim have a great idea to disrupt LinkedIn by creating a free REST JSON Api that stores important data provided by companies throughout the country. The founders don't know how to code and have no money but fortunately they have you to do all of the work.

Setup

  • setup ruby & rails (>5)
  • run bundle install
  • run rake db:setup
  • inspect the schema

or

Try my repl.it setup for this exercise

  1. Visit PairColumbus-Build-An-API
  2. Fork the environment (which makes a copy for yourself)
  3. Click the Start button
  4. Send a request to your custom URL found in the top box on the right-hand side of the screen

Tasks (pick whichever looks interesting)

  • (Task #1) implement a standard (see below)
  • (Task #2) convert your standard to graphql

Note from the Founders

  "Hey would you mind adding the various addresses a company might have in the api response? Customers are upset that they can't find out where any of the companies are located or even who works there."
  - Mike & Jim

Extra Credit

  • what are some best practices for building api's?
  • try implementing 1-2 key things missing in this api

General HTTP knowledge refresher

JSON Standards

GraphQL Help

Helpful Tools

Tutorials

About

REST x JSON x RAILS X DERP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published