Mufi.Api.Controllers
4.0.0
dotnet add package Mufi.Api.Controllers --version 4.0.0
NuGet\Install-Package Mufi.Api.Controllers -Version 4.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Mufi.Api.Controllers" Version="4.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mufi.Api.Controllers" Version="4.0.0" />
<PackageReference Include="Mufi.Api.Controllers" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Mufi.Api.Controllers --version 4.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Mufi.Api.Controllers, 4.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Mufi.Api.Controllers@4.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Mufi.Api.Controllers&version=4.0.0
#tool nuget:?package=Mufi.Api.Controllers&version=4.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MUFI API Controller
This package contains an ASP.NET Web API controller wrapping a simple MUFI (Medieval Unicode Font Initiative) lookup service.
The endpoints are:
GET api/mufi/characters/CODEwhere CODE is the numeric code value you want to get.GET api/mufi/characterswith parameters to find a specific page of matching characters:pageNumber* (int, 1-N)pageSize* (int)minCode(int)maxCode(int)uppercaseCode(int)unicodeCategories(zero or more strings)unicodeName(string, any part of it)mufiName(string, any part of it)unicodeEntity(string)mufiEntity(string)tags(zero or more strings)unicodeVersion(string)mufiVersion(string)mufiStatus(string, e.g.accepted,proposed)
To use in your API:
- add
Mufi.Api.Controllerspackage. - ensure that you include its assembly in your API configuration and configure DI for the MUFI service, e.g. in
Program.cs:
// configure MUFI service
builder.Services.AddSingleton<IMufiRepository>(_ =>
{
string path = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot");
return new LiteDBMufiRepository(
new MufiRepositoryOptions
{
Source = Path.Combine(path, "mufi.db")
});
});
// configure services
builder.Services.AddControllers()
.AddApplicationPart(typeof(MufiController).Assembly)
.AddControllersAsServices();
This will create a mufi.db file in your API wwwroot folder. Should you delete it, it will be silently recreated at the first request.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net11.0
- Fusi.Api.DataServices.Mvc (>= 0.1.0)
- Mufi.Core (>= 4.0.0)
- Mufi.LiteDB (>= 4.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.