|
| 1 | +<p align="center"> |
| 2 | +<img src ="https://raw.githubusercontent.com/json-api-dotnet/JsonApiDotnetCore/master/logo.png" /> |
| 3 | +</p> |
| 4 | + |
1 | 5 | # JSON API .Net Core
|
2 | 6 |
|
3 | 7 | [](https://ci.appveyor.com/project/jaredcnance/json-api-dotnet-core)
|
4 |
| -[](https://travis-ci.org/Research-Institute/json-api-dotnet-core) |
| 8 | +[](https://travis-ci.org/json-api-dotnet/JsonApiDotNetCore) |
5 | 9 | [](https://www.nuget.org/packages/JsonApiDotNetCore/)
|
6 | 10 | [](https://www.myget.org/feed/research-institute/package/nuget/JsonApiDotNetCore)
|
7 | 11 | [](https://gitter.im/json-api-dotnet-core/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
8 | 12 | [](http://www.firsttimersonly.com/)
|
9 | 13 |
|
10 | 14 | A framework for building [json:api](http://jsonapi.org/) compliant web APIs. 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.
|
11 | 15 |
|
| 16 | +## Examples |
| 17 | + |
| 18 | +See the [examples](https://github.com/json-api-dotnet/JsonApiDotNetCore/tree/master/src/Examples) directory for up-to-date sample applications. There is also a [Todo List App](https://github.com/json-api-dotnet/TodoListExample) that includes a JADNC API and an EmberJs client. |
| 19 | + |
12 | 20 | ## Installation And Usage
|
13 | 21 |
|
14 |
| -See the documentation [here](https://research-institute.github.io/json-api-dotnet-core) |
| 22 | +See [the documentation](https://json-api-dotnet.github.io/JsonApiDotNetCore/) for detailed usage. |
| 23 | + |
| 24 | +### Models |
| 25 | + |
| 26 | +```csharp |
| 27 | +public class Article : Identifiable |
| 28 | +{ |
| 29 | + [Attr("name")] |
| 30 | + public string Name { get; set; } |
| 31 | +} |
| 32 | +``` |
| 33 | + |
| 34 | +### Controllers |
| 35 | + |
| 36 | +```csharp |
| 37 | +public class ArticlesController : JsonApiController<Article> |
| 38 | +{ |
| 39 | + public ArticlesController( |
| 40 | + IJsonApiContext jsonApiContext, |
| 41 | + IResourceService<Article> resourceService) |
| 42 | + : base(jsonApiContext, resourceService) { } |
| 43 | +} |
| 44 | +``` |
| 45 | + |
| 46 | +### Middleware |
| 47 | + |
| 48 | +```csharp |
| 49 | +public class Startup |
| 50 | +{ |
| 51 | + public IServiceProvider ConfigureServices(IServiceCollection services) { |
| 52 | + services.AddJsonApi<AppDbContext>(); |
| 53 | + // ... |
| 54 | + } |
15 | 55 |
|
| 56 | + public void Configure(IApplicationBuilder app) { |
| 57 | + app.UseJsonApi() |
| 58 | + // ... |
| 59 | + } |
| 60 | +} |
| 61 | +``` |
16 | 62 |
|
17 |
| -## .Net Core v2 Notes |
| 63 | +## Development Priorities |
18 | 64 |
|
19 |
| -Branch `feat/core-2` is where I am working on .Net Core 2 compatibility tests and package upgrades. |
20 |
| -There are several blockers to be aware of: |
| 65 | +The current priorities for future development (in order): |
| 66 | +1. Operations Support ([#150](https://github.com/json-api-dotnet/JsonApiDotNetCore/issues/150)) |
| 67 | +2. ASP.Net Core 2.0 Support ([#161](https://github.com/json-api-dotnet/JsonApiDotNetCore/issues/161)) |
| 68 | +3. Minor features ([#105](https://github.com/json-api-dotnet/JsonApiDotNetCore/issues/105), [#144](https://github.com/json-api-dotnet/JsonApiDotNetCore/issues/144), [#162](https://github.com/json-api-dotnet/JsonApiDotNetCore/issues/162)) |
| 69 | +4. Resource to Entity Mapping ([#112](https://github.com/json-api-dotnet/JsonApiDotNetCore/issues/112)) |
21 | 70 |
|
22 |
| -- Microsoft.AspNetCore.* packages target the runtime (netcoreapp) instead of netstandard. [This will be changed in future versions.](https://blogs.msdn.microsoft.com/webdev/2017/05/10/aspnet-2-preview-1/). |
23 |
| -- Can't run acceptance testing against postgres on preview runtime [pgsql.EntityFrameworkCore.PostgreSQL#171](https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/171#issuecomment-301287257) |
| 71 | +If you're interested in working on any of the above features, take a look at the [Contributing Guide](https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/CONTRIBUTING.MD) |
| 72 | +or hop on the project Gitter for more direct communication. |
0 commit comments