
Course Introduction
HTTP powers the internet as we know it. In this lesson let's take a look on how HTTP and Swagger work together to simplify our lives.
Let's explore Swagger three main tools: Swagger Editor, UI and Codegen. Let's take a look on how they can help
Open the swagger editor, run the project locally, and explore the open api specification, including host, v1 prefix, schemes, consumes, produces, and endpoints.
Build a traditional recipe manager API with create, read, update, delete capabilities and comments, using swagger to define the recipe schema and a get endpoint returning an array of recipes.
Develop a recipe comments API with get, post, and delete endpoints; manage fields id, recipeId, author, text, date; handle 200/204, 404, and 500 responses.
Implement the get recipes endpoint by filtering an in-memory recipe list to show only public items and return them via the Swagger router; validate the behavior with Postman.
Create a post recipe endpoint that reads the request body, adds the recipe to the list with an id, and returns a 200 or 204 response, with Swagger validating types.
Implement a put recipe endpoint that reads the id from the url, replaces the matching item in the recipe list with the body, and returns 204 or 404.
deploys a node.js API to a cloud platform via the cli, including signing up, creating an app, pushing code with git, and installing npm dependencies for a public endpoint.
Learn how json web tokens enable authorization for private application programming interfaces, with login flows, token structure, and secret keys, plus their advantages and limitations demonstrated in swagger.
Welcome to Swagger course: Node.JS: API Development with Swagger.
Swagger is a framework built by Smartbear that allows to build RESTful API. Swagger offers a lot of tools to build REST API faster and more efficiently. One of it's tools is Open API Specification (OAS) which you can use to create beautiful documentation that will improve your team communication and also help you make better decisions while designing your API.
Open API Specification (OAS) is gaining a lot of traction and currently is being used in AWS API Gateway and other products that use it to document REST API.
You'll not only learn Swagger in theory but also build a real world application using Swagger throughout this course.
What is included in the course:
1 - Setup swagger in Node.js.
2 - Complete introduction to Open API Specification (v2.0).
3 - Overview on how to connect Swagger and Node.js.
4 - Best practices in developing REST API.
5 - Create real-world examples.
Extra:
- Authentication in REST API Using Swagger and Json Web Tokens (JWT)
Is this course for you?
Now that you know what the course is about let's figure out if this is the right one for you:
Students who will love this course:
Student 1. You already have some experience with Javascript and you want to learn how to build REST API with JS, Swagger is your right choice!
Student 2. You have experience with building RESTful API and want to know more about other technologies to design REST API. I believe that Swagger is what you are searching for.
Student 3. You already worked with Javascript in the frontend but you are looking forward to learn more about the backend. Swagger is a great choice, with a relatively smooth learning curve, you can learn how to setup your backend API with an extremely powerful solution while using the same language you use for the frontend.
This course also comes with:
✔ Lifetime access to all future updates
✔ A responsive instructor in the Q&A Section
✔ Udemy Certificate of Completion Ready for Download
✔ A 30 Day "No Questions Asked" Money Back Guarantee!
If you get stuck you can benefit from a fast and direct support. You can contact me anytime!
See you inside!
João