4.83 out of 5
4.83
6 reviews on Udemy

Connecting to RESTful APIs for beginners

Windows/Java/Eclipse
Instructor:
Brandon Beck
57 students enrolled
Read and Understand API documentation. Basics of creating a URL connection in Java.

This course has been designed to help the Java beginner understand how to establish connections to RESTful APIs. Examples will be taught on a Windows environment using Eclipse and Java.  The course will make minimal use of 3rd party libraries to help the student fully understand what their software is doing. We will cover the structure of an API call, the most commonly used authentication methods, and handling responses.

No tests or quizzes. Lets just write some code.

Introduction And Setup

1
Introduction

A quick introduction to me and what you'll be learning in this course. Source code for all finished lessons is linked in the last lesson.

2
Installing Java

A step by step guide to getting Java installed on your windows computer. If you are not using windows, you can still complete this course by following another guide to get Java installed on the operating system of your choice. You can freely skip this video if you already have Java installed.

3
Installing Eclipse

A step by step guide to getting the Eclipse IDE installed on your windows computer. If you are not using windows, you can still complete this course by following another guide to get Eclipse installed on the operating system of your choice.  You can also use any other IDE that you're familiar with. You can freely skip this video if you already have an IDE installed.

4
Creating a Hello World Project

This video will go over creating your first "hello world" project in Eclipse. If you're already familiar with setting up a project in your IDE, go ahead and skip this video.

Structure of an API call

1
What is REST

A very quick overview of what REST means.

2
HTTP Verbs

Description of the 4 HTTP verbs that we will cover in this course.

3
URL Structure

A discussion about the structure of a URL, and writing code to help us generate our URLs.

4
Request Headers

An explanation of what request headers are.

Authentication

1
No Auth Situations

We write some code that will actually connect to our first API. This API is publicly available data, and therefore requires no authentication.

2
API Key Authentication

We will connect to Nasa's API with API key authentication.

3
Basic Authentication (Username and Password)

We will connect to Pivotal Tracker, a project management software system with Basic Authentication.

After you finish this lesson, you will notice we re-used a lot of code. Spend some time figuring out how you can make those pieces re-usable.

4
OAuth Authentication

During this lesson we will connect to Asana using OAuth authentication.

After you finish this lesson, write some additional classes to get data from the tasks you've added to Asana.

Handling Responses and Nuances of APIs

1
Handling User Credentials
2
Error Codes and Error Handling

Good error handling is a must.

APIs are always changing.  While some API providers do a great job of documenting their API versions and changes, not all do.

This means that the Code you write needs to be flexible and capable of handling exceptions that might occur.

3
Response Headers and Rate limiting

We cover response headers that are returned with an API response, and handling API rate limits. After this lesson is finished, see if you can pace your calls to the NASA API so that you could have a regularly updating website without going over your API rate limit.

4
Thanks
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.8
4.8 out of 5
6 Ratings

Detailed Rating

Stars 5
5
Stars 4
1
Stars 3
0
Stars 2
0
Stars 1
0
8d222c8adf07da4665ed65a347f07533
30-Day Money-Back Guarantee

Includes

3 hours on-demand video
4 articles
Full lifetime access
Access on mobile and TV
Certificate of Completion