Table of Contents

Interface ISpecRestApiProps

Namespace
Amazon.CDK.AWS.APIGateway
Assembly
Amazon.CDK.AWS.APIGateway.dll

Props to instantiate a new SpecRestApi.

public interface ISpecRestApiProps : IRestApiBaseProps
Inherited Members

Examples

Integration integration;


            var api = new SpecRestApi(this, "books-api", new SpecRestApiProps {
                ApiDefinition = ApiDefinition.FromAsset("path-to-file.json")
            });

            var booksResource = api.Root.AddResource("books");
            booksResource.AddMethod("GET", integration);

Remarks

ExampleMetadata: infused

Properties

ApiDefinition

An OpenAPI definition compatible with API Gateway.

ApiDefinition ApiDefinition { get; }

Property Value

ApiDefinition

Remarks