From the course: Building APIs with Swagger and the OpenAPI Specification
Unlock the full course today
Join today to access over 24,100 courses taught by industry experts.
Building API definitions from templates - REST Tutorial
From the course: Building APIs with Swagger and the OpenAPI Specification
Building API definitions from templates
- [Instructor] SwaggerHub's templates can give us a jumpstart on building API definitions. In the last lesson, we built a customer API the customer API definition to suit the needs of HPlusSport. So to get started, we're going to navigate One is the inventory item, and the other's the manufacturer. We're not going to use the manufacturer, and now we're going to customize the inventory item to actually be a customer schema. and then we're going to remove the ID property a customer number to the required field list, and then remove the release date. At this point, we can adjust the properties within this object, so we'll add the customer number, but remove this UUID format, and then We can leave the name property, but we'll switch the example over to an actual customer name, so we'll just go with John Smith there, and then we're going to switch and modify the example to a very simple phone number. Okay, and then at this point, we can remove the manufacture field. So we have a customer…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Building APIs within SwaggerHub2m 39s
-
Getting started with SwaggerHub3m 49s
-
(Locked)
Building API definitions from templates5m 27s
-
(Locked)
Versioning APIs in SwaggerHub5m 10s
-
(Locked)
Importing API definitions3m 28s
-
(Locked)
Security schemes5m 16s
-
(Locked)
Domains5m 3s
-
(Locked)
Nesting schemas in domains7m 22s
-
(Locked)
Enforcing API standards2m 56s
-
(Locked)
Auto Mocking APIs5m 2s
-
(Locked)
Adding organization members3m 15s
-
(Locked)
Inviting individual collaborators1m 42s
-
(Locked)
Challenge: Publish the blog API58s
-
(Locked)
Solution: Publish the blog API4m 43s
-
-
-