Join Kevin Bowersox for an in-depth discussion in this video Content negotiation, part of Building APIs with Swagger and the OpenAPI Specification.
- [Instructor] In this lesson, … we'll learn how to use content negotiation … to define different response formats for API operations. … Currently, we've defined all of our API responses … in a JSON format. … Sometimes you'll need to use other formats like xml. … With the introduction of content negotiation … in OAS 3.0, we have the ability to accept or provide … multiple media types for our API operations. … Let's leverage this new feature … by providing an xml response from our product endpoint … that uses a template parameter. … You'll see how extremely simple this is … once we work through our example. … You'll notice that we have our product endpoint … using the template parameter, … and within this operation, … we have defined our JSON response. … All we need to do is specify a second media type, … right in line with the first, … and in this case, it's going to be application/xml. … And then we just specify the schema object … and we point to our reusable product component. … And at this point if we take a look at …
- 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.