OpenApiUrlTreeNode.Attach Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Attach(OpenApiDocument, String) |
Retrieves the paths from an OpenAPI document and appends the items to an OpenApiUrlTreeNode node. |
Attach(String, OpenApiPathItem, String) |
Appends a path and the PathItem to an OpenApiUrlTreeNode node. |
Attach(OpenApiDocument, String)
Retrieves the paths from an OpenAPI document and appends the items to an OpenApiUrlTreeNode node.
public void Attach (Microsoft.OpenApi.Models.OpenApiDocument doc, string label);
member this.Attach : Microsoft.OpenApi.Models.OpenApiDocument * string -> unit
Public Sub Attach (doc As OpenApiDocument, label As String)
Parameters
- doc
- OpenApiDocument
The OpenAPI document.
- label
- String
Name tag for labelling related OpenApiUrlTreeNode nodes in the directory structure.
Applies to
Attach(String, OpenApiPathItem, String)
Appends a path and the PathItem to an OpenApiUrlTreeNode node.
public Microsoft.OpenApi.Services.OpenApiUrlTreeNode Attach (string path, Microsoft.OpenApi.Models.OpenApiPathItem pathItem, string label);
member this.Attach : string * Microsoft.OpenApi.Models.OpenApiPathItem * string -> Microsoft.OpenApi.Services.OpenApiUrlTreeNode
Public Function Attach (path As String, pathItem As OpenApiPathItem, label As String) As OpenApiUrlTreeNode
Parameters
- path
- String
An OpenAPI path.
- pathItem
- OpenApiPathItem
Path Item object that describes the operations available on an OpenAPI path.
- label
- String
A name tag for labelling the OpenApiUrlTreeNode node.
Returns
An OpenApiUrlTreeNode node describing an OpenAPI path.