Skip to content

Extend OpenAPI support #66

@kostas-jonauskas

Description

@kostas-jonauskas
/// <summary>
/// Gets the complete list of available converters.
/// </summary>
/// <returns>
/// Yields the list of <see cref="ConverterDto"/> items
/// </returns>
List<ConverterDto> GetAllConverters();

/// <summary>
/// Gets a single converter definition by source and destination formats.
/// </summary>
/// <param name="sourceFormat">The source format identifier (e.g., "pdf").</param>
/// <param name="destinationFormat">The destination format identifier (e.g., "docx").</param>
/// <returns>
/// The matching <see cref="ConverterDto"/> if found; otherwise, <c>null</c>.
/// </returns>
ConverterDto GetConverter(string sourceFormat, string destinationFormat);

/// <summary>
/// Gets converters filtered by the specified tags.
/// </summary>
/// <param name="tags">
/// A list of tag names to filter by. When provided, only converters that contain all of the
/// specified tags are returned. If <c>null</c> or empty, all converters are returned.
/// </param>
/// <returns>A list of <see cref="ConverterDto"/> that match the tag criteria.</returns>
List<ConverterDto> GetConvertersByTags(List<string> tags = null);

/// <summary>
/// Searches for converters by the provided search terms.
/// </summary>
/// <param name="terms">Array of terms to search for (e.g., fragments of formats, titles, or descriptions).</param>
/// <returns>A list of <see cref="ConverterDto"/> that meet the search criteria.</returns>
List<ConverterDto> SearchConverters(string[] terms);

/// <summary>
/// Gets the list of available tags.
/// </summary>
/// <returns>
/// Yields the list of <see cref="TagDto"/> items.
/// </returns>
List<TagDto> GetTags();

/// <summary>
/// Reloads converter and tag information from the underlying CARA service and updates the cache.
/// </summary>
Task Reload();

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions