Intro to JavaScript APIs

a hands-on approach how to write, use, and consume REST APIs in JavaScript

4.60 (16 reviews)
Udemy
platform
English
language
Web Development
category
instructor
216
students
4 hours
content
Jan 2021
last update
$49.99
regular price

What you will learn

Use REST APIs with JavaScript

Retrieving and Modifying Data with REST APIs

Working with Databases

Uploading Files with REST APIs

Securing REST APIs with JSON Web Tokens

Caching REST API Data with Local Storage

Description

This course will teach you how to write, use, and consume REST APIs in JavaScript.

Application Programming Interfaces (APIs) are constructs made available in programming languages to allow developers to create complex functionality more easily. They abstract more complex code away from you, providing some easier syntax to use in its place.

Client-side JavaScript, in particular, has many APIs available to it — these are not part of the JavaScript language itself, rather they are built on top of the core JavaScript language, providing you with extra superpowers to use in your JavaScript code.  While there are many APIs available in JavaScript we often have to write our own custom API to allow transitions and access to data in our application.

A REST API is a way of easily accessing web services. When a RESTful API is called, the server will transfer to the client a representation of the state of the requested resource. A RESTful API is stateless, separates concerns between client-server, allows caching of data client-side and it utilizes standardized base URLs and methods to perform the actions required to manipulate, add, or delete data.

Each section is designed to be completed in one day, along with a hands-on practice activity to be completed before moving on to the next module.

This course assumes the following as prerequisite knowledge:

  • Intermediate to Advanced JavaScript

  • Use of the Browser DOM

  • Use of database CRUD transactions

  • Basics of Node.js

Content

Development Environment / Tool Setup

Setting up your environment
Getting Started with our Tools
Create and Test the Express Server

Use REST APIs with JavaScript, introduction, and course overview

Using REST in applications
Communication with Response Codes
Communicating with Requests
Using JavaScript with REST
JavaScript Sample Client Request
Getting Started with Express

Retrieving and Modifying Data with REST APIs

Retrieving Data using a REST API
Using JSON Envelopes to Return Data
Creating a Module
Reading Response Data From a File
Searching for Data
Searching for Data Part 2
What is CRUD?
Creating a POST Endpoint
Creating a PUT Endpoint
Creating a DELETE Endpoint
Call a REST API Method from an HTML page
Working with CORS
Creating an HTML Page to Call the REST API

Working with Databases

Using Databases with an API
Installing MongoDB
Getting Connected
Installing Mongoose
Creating a Schema
CRUD Operations in Mongoose - Adding Data
CRUD Operations in Mongoose - Querying
CRUD Operations in Mongoose - Updating
CRUD Operations in Mongoose - Deleting

Uploading files with a JavaScript REST API

Receiving Files in Express
Uploading using HTML Forms Synchronously
Uploading using HTML Forms Asynchronously
Uploading Multiple Files Synchronously
Uploading Multiple Files with HTMLHttpRequests
Managing Files
Overview of Express File Sending Methods

Securing REST APIs with JSON Web Tokens

Introduction to JSON Web Tokens
Setup the Membership Project
The Flow of Authentication
JSON Web Token Registration Request
Creating a login request
Permission Middleware

Caching REST API Data with Local Storage

Introduction to Local Storage
Understanding Use Cases
Getting Started with the Project
Using API Data Storage - The Storage API
Working with LocalStorage
Storing REST API Data
Keeping Data Fresh
Polling an API
Using a Timestamp for Better API Polling

Screenshots

Intro to JavaScript APIs - Screenshot_01Intro to JavaScript APIs - Screenshot_02Intro to JavaScript APIs - Screenshot_03Intro to JavaScript APIs - Screenshot_04

Reviews

Tyler
June 27, 2023
good start, yes some of the mongoose db connection js calls are outdated. I was able to make the changes myself.
Beth
May 18, 2021
She is a very good instructor. She gives clear descriptions of all of the concepts, and plenty of examples to work through. I learned quite a lot!

Charts

Price

Intro to JavaScript APIs - Price chart

Rating

Intro to JavaScript APIs - Ratings chart

Enrollment distribution

Intro to JavaScript APIs - Distribution chart

Related Topics

3789512
udemy ID
1/20/2021
course created date
3/6/2021
course indexed date
Bot
course submited by