Interface ISpecRestApiProps
Props to instantiate a new SpecRestApi.
Inherited Members
Namespace: Amazon.CDK.AWS.APIGateway
Assembly: Amazon.CDK.AWS.APIGateway.dll
Syntax (csharp)
public interface ISpecRestApiProps : IRestApiBaseProps
Syntax (vb)
Public Interface ISpecRestApiProps
Inherits IRestApiBaseProps
Remarks
ExampleMetadata: infused
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);
Synopsis
Properties
ApiDefinition | An OpenAPI definition compatible with API Gateway. |
Properties
ApiDefinition
An OpenAPI definition compatible with API Gateway.
ApiDefinition ApiDefinition { get; }
Property Value