APIs can have features that show up across several API resources. In this video, learn how to build snippets using refs that provide reusability of components.
- [Instructor] When building API definitions, … some objects such as schemas or parameters … may be found within more than one operation definition. … Just like programming, it's important to keep it dry, … meaning do not repeat yourself. … To enforce this best practice, the OpenAPI Specification … provides us with a way to reuse certain objects … by making them reusable components … within our API definition file. … Let's look at our API, we find at least three instances … where we define a data structure representing a product, … one within the get operation for product, … one within the post operation for product, … and then one within our endpoint … containing the template parameter … It would be very helpful … if we could reuse a data structure for this product, … and that's what we're going to take a look at … within this lesson. … To begin, we're going to navigate to the bottom … of our API definition file, and then using auto-completion, … we're going to look for the components object, …
- The architecture of the Swagger ecosystem
- Using the tools within the Swagger platform
- Building a basic API using Swagger
- Defining APIs
- Creating API documentation using Swagger UI
- Creating and publishing APIs with SwaggerHub
- API management with Apigee
- Monitoring API usage
Skill Level Intermediate
HTTP Essential Trainingwith Morten Rand-Hendriksen50m 18s Beginner
1. Swagger Ecosystem
2. Building API Specifications
3. Creating and Publishing APIs with SwaggerHub
4. Capstone Project
Next steps1m 19s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.