
You have taken the right decision by choosing this course to get started with OpenAPI! At the end of this lecture, you will have a good overview of how this course is organized and what to expect out of this course.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch", a guide to design web APIs that follows REST principles using a step-by-step approach.
Download the Designing RESTful API Quick Guide that you can use as a reference while designing an API.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
Download the RESTful API Design Document that will be built throughout this course.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
Join the official students’ Facebook group to get even more feedback and support!
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch", a guide to design web APIs that follows REST principles using a step-by-step approach.
A quick overview of the topics you will learn in this section.
Know what is API and the part they play in the communication between client and server.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
Understand the key reasons behind why you should design APIs before implementing them.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
1st step in designing a RESTful API from scratch.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
Get to know the different types of API available and when each of them are applied while designing a REST API.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
2nd step in designing a RESTful API from scratch.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
What to be done when working on an existing API? Should you change its design or go with the flow?
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
A quick recap of the topics you learned in this section and what is coming up next.
A quick overview of the topics you will learn in this section.
Know how a basic HTTP request-response cycle works.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
Understand the different parts of a typical HTTP request between client and the server.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
Get hands-on about the different parts of a HTTP request.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
Understand what is the REST principle all about along with its need, usage and application.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
Get hands-on about the API usage in the Postman tool used for designing APIs.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
Understand the difference between URL and URI while designing APIs.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
3rd step in designing a RESTful API from scratch - identify the server base URL for your REST API.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
A quick recap of the topics you learned in this section and what is coming up next.
A quick overview of the topics you will learn in this section.
Know why the resources should be designed as nouns.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
4th step in designing a RESTful API from scratch - identify the resources for your REST API.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
Know why the resources should be designed as collections as part of REST API design.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
5th step in designing a RESTful API from scratch - make sure to have your resources in plural form.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
6th step in designing a RESTful API from scratch - brainstorm and define the resource models for your REST APIs.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
Get to know why and how to select the unique identifier for each of your resource models.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
7th step in designing a RESTful API from scratch - narrow down and select an identifier for each resource while designing API..
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
Know why the non-resource data should not be made as part of resource models; instead should be query parameters while designing API.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
A quick recap of the topics you learned in this section and what is coming up next.
A quick overview of the topics you will learn in this section.
Find out the relationship between resources and their importance while designing APIs.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
8th step in designing a RESTful API from scratch - find the associations between resources (if any).
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
Learn the recommended URL structure along with tips on designing better URLs in APIs.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
9th step in designing a RESTful API from scratch - validate whether the URLs are as per the recommended guideline.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
Understand how you can combine related resources to reduce the number of URL endpoints you expose to the client.
This lecture is part of the course "Designing RESTful APIs: Learn to Design API from Scratch”, a guide to design web APIs that follows REST principles using a step-by-step approach.
A quick recap of the topics you learned in this section and what is coming up next.
Explore the fundamentals of http operations, including common methods, idempotence, and the post, put, and patch distinctions, and learn how to select operations for collection versus item resources.
Explore how http operations define actions on resources, using get to fetch all course information at /courses and return a 200 response.
Explore the five most important http operations—get, post, put, delete, and patch—and learn their purposes, typical usages, and how they relate to resource management in api design.
Select http operations by url type: use get and post for collections, and get, put, and delete for individual items; also follow collection slash item slash collection patterns.
Explore idempotent http methods in designing restful APIs; learn that get is idempotent, put and delete are idempotent, while post and patch may not be, and how to document decisions.
Differentiate post, put, and patch: post creates a new resource with a server-assigned URL, put updates a specific URL, patch updates partial data, and idempotency varies.
Identify the operations for each resource in a RESTful API by listing get, post, put, patch, and delete per URL, distinguishing collections from individual items.
Design API operations with get, post, put, patch, and delete, noting post creates resources at collection URLs and put/patch update item URLs, while get/put/delete remain idempotent.
Design and specify restful APIs by identifying operation parameters, structuring request content, and selecting content type and request body for each operation.
Design request parameters for restful apis by using query, path, header, and cookie parameters, with optional or default values and practical examples like /api/courses/10.
Identify and categorize API parameters by query, path, headers, and cookies. Apply them to get, post, put, and delete operations, using course ID as the path variable where needed.
Design http request content by choosing the appropriate content type, typically application/json, and crafting the request body for get, post, put, and delete operations.
Identify the content type of request for all operations in step 12 of the api design, and apply application/json as the preferred format for consistent api requests.
Identify the request body for all API operations and consolidate it into a final CMS API design document, with JSON payload examples for courses.
Explore how to design api requests with method, url, headers, and content, model parameters (query, path, headers, cookies), and request bodies for get, post, put, delete operations using application/json.
Explore designing api responses for a restful api by mastering http status codes, headers, and content types; design response bodies and error handling across api operations.
Design APIs using appropriate http status codes to indicate success, client errors, and server errors across 1xx to 5xx classes.
Learn to design http status codes for get, post, put, and delete operations, mapping 200, 201, 204, 400, 404, and 500 series to real scenarios.
Identify and implement HTTP status codes for API operations to ensure correct responses, including 200, 201, 400, and 404, and update the master design document.
Design the response content format for restful APIs by selecting appropriate content types, such as application/json, text, and images, with application/json as the dominant option.
Identify the content type of responses for each operation, setting application/json as the default for all API responses and explaining global versus individual level content-type settings.
Design the response body with a consistent naming convention and json format, using camel case, while avoiding exposure of internal database schemas. For collections, return arrays and consider pagination.
Identify the response body formats for all API operations, using arrays for collections and single items for specific ids, and define success and error responses clearly.
Design error handling for API responses by defining a clear error model with a unique code, message, and optional target and details, distinguishing client-side from server-side errors.
Learn to handle errors for all operations using a simple json schema with code and message, and explore details like target, inner error, and a details array for api documentation.
Design APIs by applying http status codes (2xx, 4xx, 5xx) for get, post, put, delete; use json, avoid exposing database details, and implement consistent error formats with pagination when listing.
Explore how to design RESTful APIs with filtering, pagination, and sorting capabilities, identifying when to apply each feature and how to implement them across API URLs.
Learn how to filter, sort, and paginate data for large collections in RESTful APIs by passing filter values as query parameters in get requests.
Identify the need for filtering in API documentation and add a query parameter course type to /api/courses, making filtering optional and documenting it in the master API design document.
Design restful APIs by implementing pagination with page and page size query parameters, returning a subset of results and including total pages, total count, and next/previous page navigation.
Identify the need for pagination in the api and add page and size query parameters to the get /courses endpoint to fetch a specific page of results.
Expose a sort query parameter to enable client-driven ordering of results, with sensible defaults when not supplied and clear documentation of supported sort fields.
Identify the need for sorting in the courses API and add a sort by query parameter to the /courses endpoint, enabling sorting by course name.
Design and implement filtering, sorting, and pagination for your API using query parameters. Provide page number and page size, set sensible defaults, and version your API to track changes.
Learn how to version RESTful APIs by exploring five approaches—from no versioning to media type versioning—and apply a suitable scheme to existing APIs.
Plan API versioning from the start to track changes and avoid breaking clients. Version public and partner APIs to support multiple versions and safely roll out new features.
Explore five API versioning approaches, including no versioning, URL versioning, query string versioning, header versioning, and media type versioning, with pros, cons, and ideal use cases.
Explore the no-versioning approach to restful APIs, where you modify existing APIs for bug fixes and new features, while noting its appeal for small teams and private APIs.
Explore URL versioning by placing the version in the path, support older versions for backward compatibility, and weigh the pros and cons for simple APIs.
Explore query string versioning in designing restful APIs by placing the version in the URL query, using a default version, and incrementing to support new fields.
Implement header versioning with a custom x API version header to target specific versions, and set a default version for backward compatibility when clients omit the header.
Embed the version in the content type header using media type versioning, and tailor responses per version (e.g., v1, v2), noting it is not cache friendly.
Choose a versioning approach for your API based on your specific requirements, client experience, and performance, with a recommendation to favor URL or query string versioning for most use cases.
Identify the API versioning scheme and set the API version using URL versioning in the CMS API design document, starting at 1.0 with v1 paths for all endpoints.
Explore why API versioning matters and compare five versioning schemes—no versioning, uri versioning, query string versioning, header versioning, and media type versioning—highlighting when to choose each for stable client compatibility.
The usage of API has dramatically increased in recent times, especially for cloud-native applications. Microservices have become mainstream and expose their services through API endpoints. You will learn how to design an API based on the requirements through a step-by-step approach. I've also included the companion sheets you can use whenever you need to create an API at your work.
Instructor Bio:
I am a software engineer with over 15 years of experience in the industry. I have worked on various projects and gained a wealth of knowledge and expertise in cloud computing. I am an experienced online course instructor who has trained many students on various software development topics, including API, .NET, Docker, Kubernetes, and Azure.
Topics Covered In This Course:
Overview of RESTful APIs and their benefits.
Understand the structure of a professionally written API.
Step-by-step instructions for designing a RESTful API.
Design RESTful API resources and associations between them.
Design RESTful API operations.
Design API requests and responses for each of the standard HTTP operations.
Design for filtering, pagination, and sorting.
Design API versioning methods that you can employ to track the changes you make to the APIs.
Lots of Downloadable PDFs: Designing RESTful API Quick Guide, HTTP Status Codes Cheat Sheet, etc
Practice assignments to apply what you learned.
By The End Of This Course:
You will know how to design a RESTful API from scratch.
You can design and write down each API element clearly and professionally.
Enroll now and start your journey for a successful API and cloud computing career.