‫So in this example, if I go
‫to my Amazon API Gateway and I create an API, I can import,
‫so I scroll down to REST API, I can import one
‫and as we can see here,
‫we can import it from Swagger or OpenAPI 3.
‫And then I will need to paste a Swagger file.
‫So I don't have one,
‫but if I click on Example API, this is a Swagger file.
‫So Swagger 2.0,
‫which is the version right before OpenAPI 3.
‫And so this entire file is in JSON,
‫and describes how your API should be working.
‫So you can scroll down.
‫As you can see, it's a lot of different information
‫but as soon as I have this Example API,
‫what I can do is import it and automatically,
‫as you can see,
‫my API was created from this JSON document,
‫which is very handy.
‫Back into my APIs,
‫I can go to my first API that we had used before.
‫And if we go to my stages and I go, for example,
‫to the dev stage, I can look at the SDK generation
‫and generate an SDK, for example, for Java.
‫And we need to enter all these things
‫or we can export our API in the stage.
‫And so we can export it either as Swagger or OpenAPI 3.
‫And so I can click on this and then get it as YAML
‫or with the API Gateway extension, so I can click it,
‫get it as YAML or as a Postman extension.
‫So if I just open this one as YAML and then I scroll down,
‫I can see my entire API defined
‫as the OpenAPI specification.
‫And so if I scroll down,
‫I can see everything that was created,
‫including my different resources, my different methods,
‫how they were integrated with my Lambda functions and so on.
‫So I think it's very handy.
‫It's quite a cool feature.
‫And so that makes the API Gateway fully compatible
‫with the Swagger and OpenAPI spec.
‫So that's it for this lecture.
‫I hope you liked it, and I will see you in the next lecture.