Class OpenApiUploadStore

Namespace
Kuestenlogik.Bowire
Assembly
Kuestenlogik.Bowire.dll

The OpenAPI / Swagger documents uploaded through the UI. The REST plugin reads from here during discovery and merges the parsed services with whatever it finds via embedded discovery or URL fetching.

The store keeps raw document text only — parsing happens in the REST plugin because Kuestenlogik.Bowire core can't take a dependency on the OpenAPI reader package without dragging it into every host that uses Bowire.

public static class OpenApiUploadStore
Inheritance
OpenApiUploadStore
Inherited Members

Remarks

Since #654 the documents live in Kuestenlogik.Bowire.SchemaUploadStore: on disk, in the identity's slot, under the workspace being served. This type stays as the plugin-facing surface, unchanged in shape — a protocol plugin ships on its own cadence and should not have to move because core changed where it puts a file.

Properties

HasUploads

True when at least one document has been uploaded.

public static bool HasUploads { get; }

Property Value

bool

Methods

Add(string, string?)

Adds a raw document and returns the assigned id.

public static string Add(string content, string? sourceName = null)

Parameters

content string
sourceName string

Returns

string

Clear()

Removes all uploaded documents, leaving any uploaded protos in place.

public static void Clear()

GetAll()

Returns a snapshot of all currently stored documents.

public static IReadOnlyList<UploadedDoc> GetAll()

Returns

IReadOnlyList<UploadedDoc>