This solution provides you with a solution for the previous challenge, which is important because creating an API definition with paths and resources is a fundamental skill necessary for building APIs with Swagger.
(upbeat music) … - [Instructor] Let's take a look at one way … to complete the challenge. … To begin building an API definition, … we need to specify three required fields. … The first is the open API field … where we specify the version of the OAS specification … that we'll be using. … In our case that's version three. … Next is the info field. … Within the info field, … we can specify the version of the API … as well as a title for it. … In this case, … it's going to be the H Plus Blog API. … And then finally, … we're able to specify the paths on the API definition. … Within the paths field, … we're going to go ahead and specify an article path … that's going to be used to retrieve articles from the API. … Because we're retrieving resources, … it's appropriate to use the get operation. … So we'll specify that underneath this path. … Next we'll describe the operation's response … in the content it returns. … In this case, … we'd like to describe the 200 HTTP response … that's going to return an array …
- 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.