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.

Publishing public APIs

Publishing public APIs - REST Tutorial

From the course: Building APIs with Swagger and the OpenAPI Specification

Start my 1-month free trial

Publishing public APIs

- [Instructor] Now that we have a production instance of our API running, it's important that we go back to our API definition and update the server section to include this new server. So with in SwaggerHub, we're going to navigate to our catalogue API that we're hosting and within the API definition, we're going to add new entry within the severs array. So we'll add a description. We'll say this is the production instance and then we need to provide a url to our production instance of the API. Now I still have a tab open that is directed to our production instance of the API. So I'm just going to go ahead and copy everything before product and then we can head back to the API definition and paste this in. At this point we'll save the API definition and then if we view the documentation, you'll notice a few things. First we have two instances of our API within the server's drop down. And now if we were to view one of our operations, let's say this product operation. We're able to try…

Contents