Skip to content

Commit 4493fab

Browse files
authored
Merge pull request #49 from Research-Institute/master
deploy v1.0.1 to staging
2 parents e09ee68 + 32b6b56 commit 4493fab

File tree

5 files changed

+27
-9
lines changed

5 files changed

+27
-9
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
JsonApiDotnetCore provides a framework for building [json:api](http://jsonapi.org/) compliant web servers. Unlike other .Net implementations, this library provides all the required middleware to build a complete server. All you need to focus on is defining the resources. However, the library is also fully extensible so you can customize the implementation to meet your specific needs.
1010

1111
# Table Of Contents
12+
- [Comprehensive Demo](#comprehensive-demo)
1213
- [Installation](#installation)
1314
- [Generators](#generators)
1415
- [Usage](#usage)
@@ -27,9 +28,31 @@ JsonApiDotnetCore provides a framework for building [json:api](http://jsonapi.or
2728
- [Meta](#meta)
2829
- [Tests](#tests)
2930

31+
## Comprehensive Demo
32+
33+
The following is a WIP demo showing how to create a web application using this library, EmberJS and PostgreSQL. If there are specific topics you'd like to see in future videos, comment on the playlist.
34+
35+
[![Goto Playlist](https://img.youtube.com/vi/KAMuo6K7VcE/0.jpg)](https://www.youtube.com/watch?v=KAMuo6K7VcE&list=PLu4Bq53iqJJAo1RF0TY4Q5qCG7n9AqSZf)
36+
3037
## Installation
3138

32-
`Install-Package JsonApiDotnetCore`
39+
- Visual Studio
40+
```
41+
Install-Package JsonApiDotnetCore
42+
```
43+
44+
- project.json
45+
```json
46+
"JsonApiDotNetCore": "1.0.1"
47+
```
48+
49+
- *.csproj
50+
```xml
51+
<ItemGroup>
52+
<!-- ... -->
53+
<PackageReference Include="JsonApiDotNetCore" Version="1.0.1" />
54+
</ItemGroup>
55+
```
3356

3457
Click [here](https://www.nuget.org/packages/JsonApiDotnetCore/) for the latest NuGet version.
3558

src/JsonApiDotNetCore/Controllers/JsonApiController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public virtual async Task<IActionResult> DeleteAsync(TId id)
201201
if (!wasDeleted)
202202
return NotFound();
203203

204-
return Ok();
204+
return NoContent();
205205
}
206206

207207
private IQueryable<T> ApplySortAndFilterQuery(IQueryable<T> entities)

src/JsonApiDotNetCore/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.0.0",
2+
"version": "1.0.1",
33

44
"dependencies": {
55
"Microsoft.NETCore.App": {

test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/DeletingDataTests.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
1-
using System.Collections.Generic;
21
using System.Linq;
32
using System.Net;
43
using System.Net.Http;
5-
using System.Net.Http.Headers;
64
using System.Threading.Tasks;
75
using Bogus;
86
using DotNetCoreDocs;
97
using DotNetCoreDocs.Writers;
10-
using JsonApiDotNetCore.Serialization;
11-
using JsonApiDotNetCore.Services;
128
using JsonApiDotNetCoreExample;
139
using JsonApiDotNetCoreExample.Data;
1410
using JsonApiDotNetCoreExample.Models;
1511
using Microsoft.AspNetCore.Hosting;
1612
using Microsoft.AspNetCore.TestHost;
17-
using Newtonsoft.Json;
1813
using Xunit;
1914

2015
namespace JsonApiDotNetCoreExampleTests.Acceptance.Spec

test/JsonApiDotNetCoreExampleTests/Acceptance/TodoItemsControllerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ public async Task Can_Delete_TodoItem()
424424
var response = await _fixture.MakeRequest<TodoItem>(description, request);
425425

426426
// Assert
427-
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
427+
Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
428428
Assert.Null(_context.TodoItems.FirstOrDefault(t => t.Id == todoItem.Id));
429429
}
430430
}

0 commit comments

Comments
 (0)