From the course: Building APIs with Swagger and the OpenAPI Specification
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Importing API definitions - REST Tutorial
From the course: Building APIs with Swagger and the OpenAPI Specification
Importing API definitions
- [Instructor] In some situations, you may need to import an existing OAS API definition file into SwaggerHub. So for example, we've worked within Swagger editor to build out the catalog API definition for H Sports. Let's say that we're really happy with Swagger editor but we'd like to graduate to the collaboration features that we've discovered within SwaggerHub. All we need to do is click on file and then go to save as YAML, and then within our course workspace directory I'm going to name this YAML file H Sports dash API dot YAML. So I'll go ahead and save that, and now we can navigate over to SwaggerHub and you'll see the create new option within the left-hand sidebar. Here we can select the import and document API menu item, and it allows us via this dialogue to browse for an API definition. In this case we're going to grab our newly-created H Sports dash API dot YAML file. And then we can select the organization and the visibility. So I'm going to leave that as H Plus Sport and…
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
-
-
-