
Learn how an application programming interface, or API, lets two apps talk via standard commands, differentiating it from a user interface and enabling shared data access.
Define web services as resources available over a network. Explain that all web services are APIs, but not all APIs are web services, and that HTTP is the common protocol.
Understand how API endpoints are the exact URLs you request data from, using http or https. See how a space station API returns coordinates in JSON through simple requests.
Explore the basics of http and http requests, including the hypertext transfer protocol, client–server communication, and the four parts of a request: request line, headers, blank line, and body.
Explore the http request line, including the method, uri, and http version, and see examples of get and post requests used with rest apis.
Learn how http headers pass information between client and server as name-value pairs, with host and accept-language as examples, and how request, response, general, and representation headers relate to resource.
Understand how the http body carries data in requests and responses, with content type and content length headers defining the body, and see a post request with a json body.
Explore the get and head request methods for rest apis, focusing on data retrieval and metadata access. Get requests fetch data without a body, while head requests return only headers.
Compare post, put, and pitch requests: post creates a resource with a json body, put fully replaces, and pitch partially modifies; put is item potent, while the others are not.
Understand how http delete requests remove a specific resource on a server using the delete method and uri, typically with no request body, and recognize idempotence and potential 404 responses.
Learn the structure of an http response, including the status line with the http version, status code and reason phrase, followed by headers, a blank line, and a json body.
Install Postman and issue http requests to a fake rest API, mastering json bodies, headers, and the post, put, get, patch, and delete methods for API testing.
Explore how http response status codes convey request outcomes, learn the four main classes by first digit—from informational 1xx to server error 5xx—and examine common examples like 404 not found.
Explore the rest architectural style and its six guiding principles, including representational state transfer. Learn how resources are represented in JSON or XML and accessed via URIs.
Explore JSON as a lightweight, language-independent data format used to store and transmit data in APIs. Learn its basic data types—numbers, strings, booleans, null, arrays, and objects—and nested structures.
Convert Grand Canyon National Park data into a JSON object, using an animals array and a nested location object with latitude and longitude, then save as a JSON file.
Learn to create a JSON object describing a park, using camel case keys, string values in quotes, arrays for multiple values, and a nested location object with latitude and longitude.
Master query parameters in URLs, including question marks, field value pairs, and ampersands for multiple parameters, with practical search examples using the Star Wars API and Postman.
Identify path parameters as variable parts of a URL path that identify resources; a vehicle example shows type, make, and model as path data, with color as a query parameter.
Learn the basics of XML, the Extensible Markup Language used to store and transmit data, like JSON, with tags, start and end elements, and a hierarchical root-based structure.
Learn to convert an order for a combo meal (burger, Coke, fries) into xml with Notepad++, save as xml, and view the root element orders in a browser.
Explore how XML attributes attach metadata to start tags, specify unique name/value pairs with quotes, and compare attributes versus elements for APIs.
Explore the XML declaration line, including version, encoding, and the standalone attribute, and learn why it starts at the document top and how UTF eight encodes characters.
Rewrite the provided JSON as XML, using a root element and repeated child elements for customers, hobbies, and cards, and validate syntax with an online XML formatter.
Explore an XML exercise solution, showing root and child elements, nested hobbies and cars, and an attribute for customer id, then validate and format XML online.
APIs and Web Services are everywhere these days and if you're in IT then it's essential you know how to work with them.
Unfortunately, a lot of the material online about REST APIs is confusing, especially for beginners. But don’t worry, because in this course I explain all the technical terms in a way that is easy to understand. We’re going to be learning all about how APIs work and how to use them.
If you are a beginner, or if you have some knowledge of APIs but need a refresher, this course is for you. This course includes all the essential components of APIs that every IT professional should know. The Main Topics include REST, HTTP, JSON, & XML. This course includes demos, quizzes, and exercises to test your new skills.
What you are going to learn:
Learn exactly what an API is
What API Endpoints are
Calling the International Space Station API – follow along demo.
Introduction to HTTP – the main protocol used when sending data over the internet
The different parts of an HTTP Request – The Request Line, Headers, & Body
Commonly used HTTP Request Methods - GET, POST, PUT, PATCH, HEAD, & DELETE
Learn when to use each Request Method.
Learn what idempotence means and how this relates to request methods.
Send different types of requests to an API using Postman (free version) – follow along demo.
Learn the structure of HTTP Responses
Understand Response Status Codes
HTTP Quiz
Learn the JSON data format.
Learn how to structure data in JSON by completing an exercise
Solution to the JSON exercise
REST APIs and the six guiding principles of REST – what makes an API RESTful
Learn both query parameters and path parameters - includes a demo using an API called SWAPI
Learn the XML data format
XML follow along demo
XML Attributes
XML Quiz and Exercise
Solution to the XML Exercise
If you're wanting to get a strong foundation in APIs then I look forward to working with you in the course!