在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:json-api-dotnet/JsonApiDotNetCore开源软件地址:https://github.com/json-api-dotnet/JsonApiDotNetCore开源编程语言:C# 99.8%开源软件介绍:JsonApiDotNetCoreA framework for building JSON:API compliant REST APIs using .NET Core and Entity Framework Core. Includes support for Atomic Operations. The ultimate goal of this library is to eliminate as much boilerplate as possible by offering out-of-the-box features such as sorting, filtering and pagination. You just need to focus on defining the resources and implementing your custom business logic. This library has been designed around dependency injection, making extensibility incredibly easy. Getting StartedThese are some steps you can take to help you understand what this project is and how you can use it: About
Official documentationRelated ProjectsExamplesSee the examples directory for up-to-date sample applications. There is also a Todo List App that includes a JsonApiDotNetCore API and an EmberJs client. Installation and UsageSee our documentation for detailed usage. Models#nullable enable
[Resource]
public class Article : Identifiable<int>
{
[Attr]
public string Name { get; set; } = null!;
} Middleware// Program.cs
builder.Services.AddJsonApi<AppDbContext>();
// ...
app.UseRouting();
app.UseJsonApi();
app.MapControllers(); CompatibilityThe following chart should help you pick the best version, based on your environment. See also our versioning policy.
ContributingHave a question, found a bug or want to submit code changes? See our contributing guidelines. Trying out the latest buildAfter each commit to the master branch, a new prerelease NuGet package is automatically published to AppVeyor at https://ci.appveyor.com/nuget/jsonapidotnetcore. To try it out, follow the next steps:
DevelopmentTo build the code from this repository locally, run: dotnet build Running tests locally requires access to a PostgreSQL database. If you have docker installed, this can be propped up via: pwsh run-docker-postgres.ps1 And then to run the tests: dotnet test Alternatively, to build and validate the code, run all tests, generate code coverage and produce the NuGet package: pwsh Build.ps1 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论