Class BowireOpenApiDiscoveryResult
- Namespace
- Kuestenlogik.Bowire.Protocol.Rest
- Assembly
- Kuestenlogik.Bowire.Protocol.Rest.dll
Cross-version discovery result. Carries the parsed Bowire service model plus enough metadata for the REST plugin's invocation / recording / schema-cache paths to do their job without seeing the underlying OpenAPI document object.
public sealed record BowireOpenApiDiscoveryResult : IEquatable<BowireOpenApiDiscoveryResult>
- Inheritance
-
BowireOpenApiDiscoveryResult
- Implements
- Inherited Members
Constructors
BowireOpenApiDiscoveryResult(string, string?, List<BowireServiceInfo>, string?)
Cross-version discovery result. Carries the parsed Bowire service model plus enough metadata for the REST plugin's invocation / recording / schema-cache paths to do their job without seeing the underlying OpenAPI document object.
public BowireOpenApiDiscoveryResult(string SourceUrl, string? ApiBaseUrl, List<BowireServiceInfo> Services, string? RawContent)
Parameters
SourceUrlstringURL or label the document was loaded from.
ApiBaseUrlstringFirst server URL declared in the document (with template variables expanded against their defaults), or
nullwhen the document doesn't declare one.ServicesList<BowireServiceInfo>Discovered Bowire services.
RawContentstringVerbatim document text — stamped into the workbench's source-schema cache so a downstream recording carries the original contract for the mock host to serve verbatim under
/openapi.{json,yaml}.
Properties
ApiBaseUrl
First server URL declared in the document (with template variables
expanded against their defaults), or null when the document
doesn't declare one.
public string? ApiBaseUrl { get; init; }
Property Value
RawContent
Verbatim document text — stamped into the workbench's source-schema
cache so a downstream recording carries the original contract for
the mock host to serve verbatim under /openapi.{json,yaml}.
public string? RawContent { get; init; }
Property Value
Services
Discovered Bowire services.
public List<BowireServiceInfo> Services { get; init; }
Property Value
SourceUrl
URL or label the document was loaded from.
public string SourceUrl { get; init; }
Property Value
Methods
Deconstruct(out string, out string?, out List<BowireServiceInfo>, out string?)
public void Deconstruct(out string SourceUrl, out string? ApiBaseUrl, out List<BowireServiceInfo> Services, out string? RawContent)
Parameters
SourceUrlstringApiBaseUrlstringServicesList<BowireServiceInfo>RawContentstring
Equals(BowireOpenApiDiscoveryResult?)
public bool Equals(BowireOpenApiDiscoveryResult? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BowireOpenApiDiscoveryResult?, BowireOpenApiDiscoveryResult?)
public static bool operator ==(BowireOpenApiDiscoveryResult? left, BowireOpenApiDiscoveryResult? right)
Parameters
Returns
operator !=(BowireOpenApiDiscoveryResult?, BowireOpenApiDiscoveryResult?)
public static bool operator !=(BowireOpenApiDiscoveryResult? left, BowireOpenApiDiscoveryResult? right)