Definition

Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Models Inheritance: System.Object

Syntax

Mintlify.Core.Models.ServerConfig

Summary

Represents a server configuration for API endpoints.

Remarks

Server configurations can be simple URL strings or arrays of URLs for multiple endpoints. This is used specifically for MDX server configurations and API playground base URLs.

Constructors

.ctor

Syntax

public ServerConfig()

Properties

Url

Gets or sets the single server URL.

Syntax

public string Url { get; set; }

Property Value

Type: string?

Remarks

Used when only a single server URL is specified.

Urls

Gets or sets the list of server URLs.

Syntax

public System.Collections.Generic.List<string> Urls { get; set; }

Property Value

Type: System.Collections.Generic.List<string>?

Remarks

Used when multiple server URLs are provided. Not serialized directly as it’s handled by the converter.

Methods

ToString

Returns the string representation of the server configuration.

Syntax

public override string ToString()

Returns

Type: string The primary URL or empty string.