Nancy.WebApi
1.0.0
See the version list below for details.
dotnet add package Nancy.WebApi --version 1.0.0
NuGet\Install-Package Nancy.WebApi -Version 1.0.0
<PackageReference Include="Nancy.WebApi" Version="1.0.0" />
<PackageVersion Include="Nancy.WebApi" Version="1.0.0" />
<PackageReference Include="Nancy.WebApi" />
paket add Nancy.WebApi --version 1.0.0
#r "nuget: Nancy.WebApi, 1.0.0"
#:package Nancy.WebApi@1.0.0
#addin nuget:?package=Nancy.WebApi&version=1.0.0
#tool nuget:?package=Nancy.WebApi&version=1.0.0
The purpose of the project is to enable attribute routing and minimizing the code changes with switching between Nancy and ASP.NET WebAPI.
Here is some sample usage:
[RoutePrefix("api/userApi")]
public class UserApi : ApiController
{
[HttpGet("/")]
public IEnumerable<User> GetAll()
{
return new List<User> { new User(), new User() };
}
[HttpGet("/{id}")]
public User GetById(int id)
{
return new User();
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
-
.NETFramework 4.6.1
- Nancy (>= 1.4.3)
- Newtonsoft.Json (>= 8.0.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Nancy.WebApi:
Package | Downloads |
---|---|
Nancy.WebApi.HelpPages
Nancy.WebApi.HelpPages Adding WebApi HelpPages to Nancy. By default, the help page url is [baseUrl]/help |
GitHub repositories
This package is not used by any popular GitHub repositories.