How to create an API with Ruby on Rails

How to create an API with Ruby on Rails

  • English
  • Programming
  • Ruby-on-RailsRuby-on-Rails
  • (900)
  • Project length: 4h 23m

This project is for you, if you want to learn how to develop a public-facing (or private) API, using Ruby on Rails. We'll learn about how to secure your application, making it user-based and token-based authentication so you have the ultimate choice in how you want to structure your own app. If you're curious about the advantages of building an API with Rails, check out this page: http://guides.rubyonrails.org/api_app.html

Overview

Introduction

This Ruby on Rails tutorial will cover all the details (resources, tools, languages etc) that are necessary to build a complete and operational external API. You will be guided through all the steps and concepts, starting from the basic ones like setting up the right tools and frameworks to the more advanced topics related to the development. Ultimately I should help you master creating your own API’s and get building soon enough, without any difficulty.

What are the requirements?

There are no prior requirements to watching this course, however a basic understanding of how Ruby on Rails work will be a massive boon for you in understanding whats going on. Throughout the course we’ll be going through, and using, the following technologies:

  • HTML/CSS
  • Git
  • Setting up Ruby on Rails as API Only
  • Ruby on Rails Routing
  • Token-based Authentication
  • Postman

What is the target audience? This course is for programmers who want to:

  • Learn how to setup a minimalistic Ruby on Rails project, using API-only features
  • Learn how to write token-based Authentication for an API
  • Explore some of the amazing built-in capabilities of Ruby on Rails

When are the streaming sessions (streaming schedule)?

Weekly Tuesday at 2PM EST (8pm GMT(+2) Copenhagen time)

Project Outline

Session 1: Setting-up the Environment

  • Setting up the programming environment for mac
  • Setting up the programming environment for Linux
  • Setting up the programming environment for Windows
  • Nice-to-have applications, software and plugins

Session 2: Diving in - Here we will learn how to create a basic structure of an API using Rails scaffolding. This session will feature:

  • Quick recap
  • Using scaffolding to structure the app according to best practices
  • Setting up the application to respond to API requests
  • Working with POSTMan to verify working API

Session 3: Creating and exposing the REST Endpoint using CRUD standards

  • Recapping the last session
  • Adding (and exposing) the endpoint
  • Using namespaces to create a meaningful URL

Session 4: Summing up, and small fixes

  • Fixing broken CRUD actions
  • Adding delete functionality

Tools:

  • Ruby
  • Ruby on Rails
  • VirtualBox
  • Postman

Reviews

Average rating

5(900 Reviews)