From the course: Building APIs with Swagger and the OpenAPI Specification
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Domains - REST Tutorial
From the course: Building APIs with Swagger and the OpenAPI Specification
Domains
- [Instructor] A domain in SwaggerHub provides the capability to reuse OAS definition objects such as schema definitions, path items, parameters and responses across multiple API definitions. The ability to reuse objects across API definitions helps maintain consistency amongst an organization's catalog of API definition files. It also allows them to deliver API definitions more quickly because of the reusability we achieve. So, let's go ahead and create a domain for the HPlusSports organization within SwaggerHub. To do this, we click on the plus button on the left-hand side bar and then go to Create New Domain. Now within the Add New Domain dialog, it is extremely important that we select OAS 3.0. From there, we can specify the name of our domain. I'm just going to say HPlus for short. After that, we can set our version number which I'm going to set to version 1.0. With this information in place, we can click on Create Domain and our new domain will be created and we're navigated to…
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
-
Building API definitions from templates5m 27s
-
Versioning APIs in SwaggerHub5m 10s
-
Importing API definitions3m 28s
-
Security schemes5m 16s
-
Domains5m 3s
-
Nesting schemas in domains7m 22s
-
Enforcing API standards2m 56s
-
Auto Mocking APIs5m 2s
-
Adding organization members3m 15s
-
Inviting individual collaborators1m 42s
-
Challenge: Publish the blog API58s
-
Solution: Publish the blog API4m 43s
-
-
-