Description
A framework for building JSON:API compliant REST APIs using .NET Core and Entity Framework Core.
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.
JsonApiDotNetCore alternatives and similar packages
Based on the "API" category.
Alternatively, view JsonApiDotNetCore alternatives based on common mentions on social networks and blogs.
-
NancyFx
DISCONTINUED. Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono. Note: This project is no longer maintained and has been archived. -
Hot Chocolate
Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Nitro the awesome Monaco based GraphQL IDE. -
WexFlow
DISCONTINUED. An easy and fast way to build automation and workflows on Windows, Linux, macOS, and the cloud. -
Xamarin.Essentials
DISCONTINUED. Xamarin.Essentials is no longer supported. Migrate your apps to .NET MAUI, which includes Maui.Essentials. -
FFImageLoading - Fast & Furious Image Loading
Image loading, caching & transforming library for Xamarin and Windows -
SapphireDb
SapphireDb Server, a self-hosted, easy to use realtime database for Asp.Net Core and EF Core -
🎨 Awesome .Net Core Education
DISCONTINUED. A curated list of awesome articles and resources for learning and practicing .Net Core and its related technologies. -
Lib.AspNetCore.ServerSentEvents
Lib.AspNetCore.ServerSentEvents is a library which provides Server-Sent Events (SSE) support for ASP.NET Core -
EISK Web API
Project based on latest .NET (v6.0) technologies for building scalable web api, along with clean architecture patterns. -
RedditSharp
DISCONTINUED. C# Implementation of the Reddit API. This is an ("unofficial") Fork of SirCmpwn/RedditSharp with Nuget package/support. -
CommandQuery
Command Query Separation for 🌐ASP.NET Core ⚡AWS Lambda ⚡Azure Functions ⚡Google Cloud Functions -
Lib.Web.Mvc
Lib.Web.Mvc is a library which contains some helper classes for ASP.NET MVC such as strongly typed jqGrid helper, attribute and helper providing support for HTTP/2 Server Push with Cache Digest, attribute and helpers providing support for Content Security Policy Level 2, FileResult providing support for Range Requests, action result and helper providing support for XSL transformation and more. -
Cloud Storage
Storage library provides a universal interface for accessing and manipulating data in different cloud blob storage providers -
FileUltimate
FileUltimate is an ASP.NET File Manager and an ASP.NET File Uploader which supports ASP.NET Core 5.0+, ASP.NET Core 2.1+, ASP.NET MVC 3.0+ and ASP.NET WebForms 4.7.2+ web applications/web sites. -
Juka
🥣 Juka Programming Language - Fast Portable Programming Language. Run code anywhere without complicated installations and admin rights. Simple, yet powerful new programming language [Easy to code and run on any system] IOT devices supported! -
ابزار Persian Tools
Persian Tools for .NET Framework and .NET Core: Shamsi date convertor, All Iranian calendar holidays. Iranian City and provinces, Iranian national ID verification. -
Gamepad-Controller-Test
Gamepads are often used as replacements for Mouse / Keyboard. While it is not possible to use them with every game, there are several games available that support gamepad controls, especially console ports of PC titles or even games designed for gamepad controls in the first place. To ensure maximum compatibility, Windows uses a default gamepad driver which supports a wide variety of gamepads. The most notable exception is the Xbox controllers, which still use XBCD for their enhanced features (e.g., force feedback). Therefore I have decided to make an easy test for gamers to test their gamepad controller devices on the go online without wasting any time trying to install third-party softwares which are usually out of order on their PCs to get the job done. This project is inspired by the work of @greggman and tweaks his work a little bit for a better user experience, all credit goes to him for this amazing work and for making my job easy. -
Developer Exception Json Response Middleware
Http Middleware Extensions for ASP.NET Core application -
How to Create Interactive Table View in SwiftUI
This is as example app for demonstration of latest 'Table' view api of SwiftUI -
VideoUltimate
VideoUltimate is a .NET Video Reader and a .NET Video Thumbnailer which can read any video file format on the planet. It supports .NET 5.0+ or .NET Core 2.0+ and .NET Framework 4.7.2+ web/console/desktop applications. -
ASP.NET WebAPI
Framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices -
ASP.NET Web API
Framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices
SaaSHub - Software Alternatives and Reviews
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of JsonApiDotNetCore or a related project?
README
JsonApiDotNetCore
A 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 Started
These are some steps you can take to help you understand what this project is and how you can use it:
About
- What is JSON:API and why should I use it? (blog, 2017)
- Pragmatic JSON:API Design (video, 2017)
- JSON:API and JsonApiDotNetCore (video, 2021)
- JsonApiDotNetCore Release 4.0 (blog, 2020)
- JSON:API, .Net Core, EmberJS (video, 2017)
- Embercasts: Full Stack Ember with ASP.NET Core (paid course, 2017)
Official documentation
- The JSON:API specification
- JsonApiDotNetCore website
- [Roadmap](ROADMAP.md)
Related Projects
Examples
See 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 Usage
See 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();
Compatibility
The following chart should help you pick the best version, based on your environment. See also our [versioning policy](./VERSIONING_POLICY.md).
JsonApiDotNetCore | Status | .NET | Entity Framework Core |
---|---|---|---|
3.x | Stable | Core 2.x | 2.x |
4.x | Stable | Core 3.1 | 3.1 |
Core 3.1 | 5 | ||
5 | 5 | ||
6 | 5 | ||
5.0.0-5.0.2 | Stable | 6 | 6 |
5.0.3+ | Stable | 6 | 6 |
6 | 7 | ||
7 | 7 |
Contributing
Have a question, found a bug or want to submit code changes? See our [contributing guidelines](./.github/CONTRIBUTING.md).
Trying out the latest build
After 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:
- In Visual Studio: Tools, NuGet Package Manager, Package Manager Settings, Package Sources
- Click +
- Name: AppVeyor JADNC, Source: https://ci.appveyor.com/nuget/jsonapidotnetcore
- Click Update, Ok
- Open the NuGet package manager console (Tools, NuGet Package Manager, Package Manager Console)
- Select AppVeyor JADNC as package source
- Run command:
Install-Package JonApiDotNetCore -pre
Development
To 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