ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder.CreateGetRequestInformation C# (CSharp) Method

CreateGetRequestInformation() public method

The to [term] of the relation. The term to which the relationship is defined. Configuration for the request such as headers, query parameters, and middleware options.
public CreateGetRequestInformation ( Action requestConfiguration = default ) : RequestInformation
requestConfiguration Action
return RequestInformation
        public RequestInformation CreateGetRequestInformation(Action<ToTermRequestBuilderGetRequestConfiguration> requestConfiguration = default) {
            var requestInfo = new RequestInformation {
                HttpMethod = Method.GET,
                UrlTemplate = UrlTemplate,
                PathParameters = PathParameters,
            };
            if (requestConfiguration != null) {
                var requestConfig = new ToTermRequestBuilderGetRequestConfiguration();
                requestConfiguration.Invoke(requestConfig);
                requestInfo.AddQueryParameters(requestConfig.QueryParameters);
                requestInfo.AddRequestOptions(requestConfig.Options);
                requestInfo.AddHeaders(requestConfig.Headers);
            }
            return requestInfo;
        }
        /// <summary>The to [term] of the relation. The term to which the relationship is defined.</summary>