Skip to content

Auto Resource/Service Discovery #326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 278 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
278 commits
Select commit Hold shift + click to select a range
05056a9
wrap operations in EF transaction
jaredcnance Oct 23, 2017
8ada5c0
chore(*): bump project version and document usage
jaredcnance Oct 24, 2017
5832ea3
fix tests
jaredcnance Oct 24, 2017
e4c3968
chore(csproj): bump package version
jaredcnance Nov 13, 2017
bb90f9e
feat(query-parser): allow inheritance and method overrides (#191)
jaredcnance Nov 13, 2017
c81a7ac
document options
jaredcnance Nov 13, 2017
7a42f74
chore(JsonApiContext): improve error handling if resource not defined…
jaredcnance Nov 15, 2017
a28b17f
fix(deserializer): skip foreign key if data not in relationship
jaredcnance Nov 15, 2017
818de06
chore(csproj): bump package version
jaredcnance Nov 15, 2017
9cc16b7
merge master into fork
jaredcnance Dec 5, 2017
4be705a
test(*): fix tests broken after aspnet and ef core 2.0 upgrades
jaredcnance Dec 5, 2017
1280195
ci(travis): target 2.0.0 sdk
jaredcnance Dec 5, 2017
1e932d3
ci: remove file watching on startup classes
jaredcnance Dec 5, 2017
bf357fb
chore(*): fix build warnings and use new Program.cs format
jaredcnance Dec 5, 2017
0918865
Merge pull request #199 from json-api-dotnet/feat/#161-aspnetcore2.0
jaredcnance Dec 5, 2017
71a55d4
docs(readme): update priorities
jaredcnance Dec 7, 2017
3e2cd15
200: fixed check of element type for IEnumerable<T>
shuebner-zeiss Dec 7, 2017
52fc5f4
feat(JsonApiController: Expose CQRS constructor
jaredcnance Dec 12, 2017
ad0ca38
docs(readme): fix appveyor link
jaredcnance Dec 12, 2017
192513e
feat(*): add benchmarks project and dependencies.props
jaredcnance Nov 15, 2017
c9b6c11
chore(benchmarks): remove parent dir
jaredcnance Nov 15, 2017
53ad46f
bench(serializer): test simple object serialization
jaredcnance Nov 15, 2017
45dcb12
perf(*): only keep markdown benchmarks
jaredcnance Nov 15, 2017
4748e16
bench(QueryParser): add sort benchmarks
jaredcnance Nov 26, 2017
78274c3
perf(QueryParser): improve sort parsing perf
jaredcnance Nov 26, 2017
8d29d7e
chore(benchmark-results): cleanup results
jaredcnance Nov 26, 2017
15a9830
feat(FilterQuery / QueryAccessor): use public attribute names for keys
jaredcnance Nov 26, 2017
cb20ff4
perf(QueryParser): constants instead of inline strings
jaredcnance Nov 26, 2017
a8831b2
bench(*): run new benchmarks
jaredcnance Nov 26, 2017
0e6778f
feat(*): add constants for Content-Type
jaredcnance Dec 3, 2017
a269902
fix(queryParser): remove access to obsolete key
jaredcnance Dec 3, 2017
ae452d2
fix(JsonApiDeSerializer): throw on possible null exception
jaredcnance Dec 16, 2017
a54a211
test(queryParser): add test coverage and handle exception
jaredcnance Dec 16, 2017
2b1cbcc
fix(ContextGraph): return null instead of throwing null exception
jaredcnance Dec 16, 2017
5eb948f
fix(queryParser): add missing usings
jaredcnance Dec 16, 2017
6d52888
fix(props): bump to netstandard2.0
jaredcnance Dec 16, 2017
f2ae112
feat(AttrAttribute): add isSortable and isFilterable
jaredcnance Dec 19, 2017
6cdd04b
fix(Attr/RelationshipAttibute): make setters internal
jaredcnance Dec 20, 2017
cb0780f
test(acceptance): verify filter/sort limitations
jaredcnance Jan 3, 2018
ebcb575
chore(csproj): upgrade xunit and include dotnet watch
jaredcnance Dec 19, 2017
9f1beab
feat(DbContextReolver): make the implementation generic and remove in…
jaredcnance Dec 19, 2017
6404ba1
feat(*): remove non-EF dependencies on DbContextResolver
jaredcnance Dec 19, 2017
0045fcd
ci(Build.ps1): check exit codes
jaredcnance Dec 19, 2017
318582e
tests(DefaultEntityRepository): fix test setup
jaredcnance Dec 19, 2017
2cb6add
chore(DefaultEntityRepository): drop obsolete constructor
jaredcnance Dec 19, 2017
77933c8
chore(ContextGraph): remove publicly accessible member
jaredcnance Dec 19, 2017
16719ac
chore(EntityResourceService): remove unused var declaration
jaredcnance Dec 19, 2017
8b59408
chore(example csproj): remove unnecessary members
jaredcnance Dec 19, 2017
d706d37
chore(IQueryableExtensions): fix bad comments
jaredcnance Dec 19, 2017
604f487
chore(EntityResourceService): consolidate ShouldIncludeRelationships …
jaredcnance Jan 3, 2018
5f6b9bc
moved Sort into an IQueryable extension method
shuebner-zeiss Jan 2, 2018
872b74b
moved Page into an IQueryable extension method
shuebner-zeiss Jan 2, 2018
916e03c
moved Filter into an IQueryable extension method
shuebner-zeiss Jan 2, 2018
0209bae
removed dependency on query realization from EntityResourceService
shuebner-zeiss Jan 2, 2018
70cb94c
realize query when there is no paging in EntityResourceService.ApplyP…
shuebner-zeiss Jan 3, 2018
4425c71
feat/#226: Support for omitting null valued attributes from responses
lheiskan Jan 25, 2018
e828dc9
End to end tests for null valued attribute handling
lheiskan Jan 29, 2018
f6a84eb
Fix broken url for IResourceService
Biarity Feb 11, 2018
2374492
Update Pagination.md
Biarity Feb 10, 2018
19e90b8
include stack traces when not in production
jaredcnance Feb 18, 2018
0a8f500
Merge branch 'master' into develop
jaredcnance Feb 18, 2018
9bdbb88
add static exception UnSupportedRequestMethod
jaredcnance Feb 18, 2018
0116376
fix build issues and consolidate props definitions
jaredcnance Feb 18, 2018
1b14bd0
fix tests
jaredcnance Feb 18, 2018
4c97c19
feat(operations): remove JSON pointers from previous spec draft
jaredcnance Feb 18, 2018
6b50baf
breaking(Document): introduce RO and RIO from spec
jaredcnance Feb 18, 2018
f3cb9d9
fix standad tests
jaredcnance Feb 18, 2018
4a65704
fix(deserialization): deserialize operations document
jaredcnance Mar 1, 2018
9b93e42
test(operations): use dbcontext resolver
jaredcnance Mar 1, 2018
86c1b56
use local ids instead of JsonPointers
jaredcnance Mar 1, 2018
3b08bdb
replace ref.lid with results ids
jaredcnance Mar 2, 2018
5f4f5c5
Merge pull request #229 from json-api-dotnet/develop
jaredcnance Mar 7, 2018
e2396ac
Initializing PageOffset to be 1 (instead of default 0) so that the 'n…
nwise Mar 23, 2018
d930651
Merge pull request #243 from nwise/fix-pagination
jaredcnance Mar 23, 2018
a292b27
chore(sln): clean up solution
jaredcnance Mar 24, 2018
e18fa03
put operation enabling behind a feature flag on global options
jaredcnance Mar 24, 2018
3f8b35f
add docfx documentation boilerplate
jaredcnance Mar 25, 2018
9719f74
support bulk add transaction
jaredcnance Mar 25, 2018
aea5385
add tests for bulk operations
jaredcnance Mar 25, 2018
a869636
test transaction rollbacks
jaredcnance Mar 25, 2018
a20bd53
fix(transactions): locate services using request scoped service provider
jaredcnance Mar 26, 2018
1bc89ea
fix(operations test): use update vs replace
jaredcnance Mar 26, 2018
9215ccd
introduce ScopedServiceProvider and fix tests
jaredcnance Mar 27, 2018
d3c9269
move operations AppDbContext into the shared JsonDotNetCoreExample pr…
jaredcnance Mar 27, 2018
0884b64
don't use docfx on non-windows platforms
jaredcnance Mar 27, 2018
6808741
fix(csproj): correct IsWindows condition check
jaredcnance Mar 27, 2018
82824b1
remove support for JsonPointers
jaredcnance Mar 27, 2018
4ef0d79
fix(OperationProcessorResolver): do not cache opProcessors
jaredcnance Mar 29, 2018
a6d6ca6
return 404 if get by id returns null
jaredcnance Mar 29, 2018
9e18ab3
introduce Is method on attributes for performing case insensitive com…
jaredcnance Mar 29, 2018
59fc19a
support get relationship requests in operations
jaredcnance Mar 29, 2018
ef31963
Merge branch 'feat/#223' into operations
jaredcnance Mar 31, 2018
08f71af
return 409 for mismatching data types
jaredcnance Mar 31, 2018
fb32305
Merge pull request #245 from json-api-dotnet/operations
jaredcnance Mar 31, 2018
7ba47cd
Update README.md
jaredcnance Apr 1, 2018
3989d3f
fix(ContextGraphBuilder): don't throw if DbContext contains non json:…
jaredcnance Apr 4, 2018
132050e
chore(csproj): bump package version to 2.2.1
jaredcnance Apr 4, 2018
906c697
Merge pull request #250 from json-api-dotnet/fix/#249
jaredcnance Apr 4, 2018
dd12e38
fix(Deserializer): remove dependency on GenericProcessorFactory
jaredcnance Apr 7, 2018
e5a0f6d
fix(typeExtensions): cast to IEnumerable using covariance
jaredcnance Apr 8, 2018
79084ba
fix(Deserializer): properly convert collection type when setting it o…
jaredcnance Apr 8, 2018
be33bac
set new HasManyRelationships with EntityState.Unchanged
jaredcnance Apr 8, 2018
af0e77f
ensure pointers are attached prior to adding the entity
jaredcnance Apr 8, 2018
11dafb9
fix tests
jaredcnance Apr 8, 2018
6210919
#162 Adds new boolean value for 'canInclude' to ResourceAttribute. Up…
crfloyd Apr 20, 2018
0723567
#162 Adds unit test to test the new canInclude ResourceAttribute prop…
crfloyd Apr 20, 2018
41b0415
make private service methods protected virtual
jaredcnance Apr 21, 2018
0cfa4e6
allow custom attribute filters
jaredcnance Apr 21, 2018
4ec71e0
add ctor without logger factory
jaredcnance Apr 21, 2018
8c06ae3
Revert "allow custom attribute filters"
jaredcnance Apr 21, 2018
a8d8d60
Merge pull request #265 from json-api-dotnet/feat/#239
jaredcnance Apr 22, 2018
6726794
fix documentation link
jaredcnance Apr 22, 2018
bf79a20
chore(docs): removed obsolete docs
jaredcnance Apr 22, 2018
d62df1c
chore(contrib): link to documentation
jaredcnance Apr 22, 2018
82ec4a7
Merge pull request #266 from json-api-dotnet/chore/remove-docs
jaredcnance Apr 22, 2018
0d1ba6e
#162 Adds parameter name to new attribute value for example.
Apr 23, 2018
93b7818
Merge pull request #262 from crfloyd/feature/#162
jaredcnance Apr 23, 2018
2b91646
#258 Adds new utility to provide substrings of a given string as Span…
Apr 24, 2018
85f09d1
#258 Updates LinkBuilder, RelatedAttrFilterQuery, RequestMiddleware, …
Apr 24, 2018
a7d3390
#258 Fixes Error in ContainsMediaTypeParameters method's logic. Conte…
Apr 24, 2018
6ab917f
#258 Removes extra ToString() on the span and fixes naming to be more…
crfloyd Apr 25, 2018
86d7635
#258 Adds extension method for splitting with spans. Updates usages a…
crfloyd Apr 25, 2018
6fc48de
Update README.md
jaredcnance Apr 25, 2018
0d78632
Merge pull request #272 from json-api-dotnet/docs/readme
jaredcnance Apr 28, 2018
a6aebe4
Merge branch 'fix/#237' into develop
jaredcnance Apr 28, 2018
a7774b5
refactor(LinkBuilder): reduce allocations
jaredcnance Apr 29, 2018
8beb2e5
Update .travis.yml
jaredcnance May 1, 2018
e374125
benchamrk: don't duplicate the final version's definition
jaredcnance May 2, 2018
b647f94
add benchmarks to RequestMiddleware
jaredcnance May 2, 2018
0f4ccf6
add benchmarks for IsRelationshipPath
jaredcnance May 2, 2018
d94287e
Closes #273
May 4, 2018
ca7c4ea
clean up unused changes
jaredcnance May 6, 2018
e8a0607
Merge pull request #271 from crfloyd/feature/#258
jaredcnance May 6, 2018
78cba0e
Merge pull request #275 from turingtestable/273
jaredcnance May 6, 2018
0332870
added changes for fix and fixed tests
May 7, 2018
38f7c19
fixes #277
May 7, 2018
1ac4748
bump package version
jaredcnance May 7, 2018
ffaacf6
validation fix
May 7, 2018
ae14d28
Merge branch 'fix277' of github.com:fxa109/JsonApiDotNetCore into fix277
May 7, 2018
a793460
Merge pull request #278 from fxa109/fix277
jaredcnance May 7, 2018
19e976b
#218 Defaults data to be included in relationships rather than only w…
May 8, 2018
4ccae8b
#218 Adds unit test verify relationhip data included in resource rela…
May 11, 2018
3e46dee
fix tests by separating relationship and type names
jaredcnance May 15, 2018
89662a8
Merge pull request #280 from crfloyd/feature/#218
jaredcnance May 15, 2018
a5730bf
chore(csproj): bump package version
jaredcnance May 15, 2018
3c98b70
fix(#218): include independent hasOne identifier
jaredcnance May 15, 2018
f34cca7
Add Negative filter
May 25, 2018
6210cc6
Add NotEqual acceptance test
May 25, 2018
4126f36
Changed Count
May 25, 2018
91a5699
Fix NotEqual filter test
May 26, 2018
43e2bfe
Merge pull request #287 from milosloub/master
jaredcnance May 28, 2018
7ad0eb8
Add IN filter for array searching
May 29, 2018
912f45c
fix(HasOneAttribute): return null if property doesnt exist
jaredcnance Jun 5, 2018
40c8ffe
fix(DocumentBuilder): handle case when hasOne relationship type is un…
jaredcnance Jun 5, 2018
cc88218
Merge pull request #284 from json-api-dotnet/fix/#218
jaredcnance Jun 5, 2018
65bb454
Code improvements of "in" filtering
Jun 6, 2018
f4854c4
Merge pull request #288 from milosloub/master
jaredcnance Jun 6, 2018
a9342e2
fix(Deserializer): remove dependency on GenericProcessorFactory
jaredcnance Apr 7, 2018
a0b284d
fix(typeExtensions): cast to IEnumerable using covariance
jaredcnance Apr 8, 2018
1e134cf
fix(Deserializer): properly convert collection type when setting it o…
jaredcnance Apr 8, 2018
bc621fa
set new HasManyRelationships with EntityState.Unchanged
jaredcnance Apr 8, 2018
9ee5a97
ensure pointers are attached prior to adding the entity
jaredcnance Apr 8, 2018
5fbf2e8
fix tests
jaredcnance Apr 8, 2018
46df3b5
add serialization tests
jaredcnance May 10, 2018
846e3fc
refactor(JsonApiContext): begin interface separation
jaredcnance May 10, 2018
48c6b5a
document(IUpdateRequest)
jaredcnance Jun 5, 2018
4ac550e
fix(JsonApiDeserializer): if hasOne is nullable allow it to be set null
jaredcnance Jun 9, 2018
49468ed
fix(JsonApiDeSerializer): null refs
jaredcnance Jun 9, 2018
013197a
chore(csproj): bump package version
jaredcnance Jun 9, 2018
d76c600
fix(csproj): syntax error
jaredcnance Jun 9, 2018
449e3f8
Merge branch 'fix/#237' into develop
jaredcnance Jun 9, 2018
22e742d
test(spec): can create hasOne relationship with resource
jaredcnance Jun 10, 2018
4c5acb9
Merge pull request #296 from json-api-dotnet/test/creating-has-one
jaredcnance Jun 10, 2018
aff997c
Merge pull request #254 from json-api-dotnet/fix/#237
jaredcnance Jun 12, 2018
df7cc0f
docs(*): add xml comments
jaredcnance Jun 12, 2018
67c3102
Make `AddJsonApi` chainable
btecu Jun 12, 2018
86eb400
Merge pull request #298 from json-api-dotnet/docs/xml-documentation
jaredcnance Jun 12, 2018
3b3b413
Merge pull request #299 from btecu/services
jaredcnance Jun 12, 2018
a3f6d5f
Use `MvcCore` instead of `Mvc`
btecu Jun 12, 2018
d7a6346
Update dependencies
btecu Jun 12, 2018
a970745
Fix tests, cleanup warning (deprecations)
btecu Jun 12, 2018
a460d99
Reduce verbosity
btecu Jun 13, 2018
bc5025c
Merge pull request #303 from btecu/verbosity
jaredcnance Jun 13, 2018
d45b197
Further reduce tests verbosity
btecu Jun 13, 2018
9441893
Make paths consistent
btecu Jun 13, 2018
d79b218
Remove already included packages
btecu Jun 13, 2018
3f4e76f
Merge pull request #304 from btecu/verbosity
jaredcnance Jun 13, 2018
7280ff7
fix test issue and bump package version to 2.3.0
jaredcnance Jun 14, 2018
b276a0a
Merge branch 'master' into updates
jaredcnance Jun 14, 2018
037e033
Merge pull request #300 from btecu/updates
jaredcnance Jun 14, 2018
ca668fd
Link to performance reports and related projects
jaredcnance Jun 15, 2018
f4a7ff1
Merge pull request #306 from json-api-dotnet/jaredcnance-patch-1
jaredcnance Jun 15, 2018
1847d7d
Fixing issue where total-records was 0 on POST and PATCH calls.
nwise Jun 15, 2018
02d6510
make attr constructor public
jaredcnance Jun 18, 2018
a3fc750
update version 2.3.1
jaredcnance Jun 18, 2018
2a11245
Merge pull request #309 from json-api-dotnet/jaredcnance-patch-1
jaredcnance Jun 18, 2018
a1e730b
fix(IResourceService): should inherit from shorthand interfaces
jaredcnance Jun 18, 2018
0c474fa
fix(IResourceCmdService): inherit shorthand interfaces
jaredcnance Jun 18, 2018
32bef04
fix(IResourceQueryService): inherit shorthand interfaces
jaredcnance Jun 18, 2018
87a0bb2
Merge pull request #311 from json-api-dotnet/master
jaredcnance Jun 18, 2018
648c181
bump version to 2.3.2
jaredcnance Jun 18, 2018
d181b53
Merge pull request #310 from json-api-dotnet/jaredcnance-patch-1
jaredcnance Jun 18, 2018
d61bcbb
PR feedback
jaredcnance Jun 20, 2018
f0f8d9e
allow TotalRecords to be 0
jaredcnance Jun 20, 2018
c47886a
allow meta to be included even if there is no returned resource
jaredcnance Jun 21, 2018
e6fb926
expect total-records to be included if configured
jaredcnance Jun 21, 2018
52b1dba
Merge pull request #308 from nwise/master
jaredcnance Jun 23, 2018
e3e3c95
fix(#312): deserializer not handling included relationships
jaredcnance Jun 27, 2018
d8b045f
handle attaching HasOne relationships
jaredcnance Jun 27, 2018
0742b39
Merge pull request #314 from json-api-dotnet/fix/#312
jaredcnance Jun 27, 2018
ac3a3c0
Merge pull request #315 from json-api-dotnet/develop
jaredcnance Jun 27, 2018
c2b9084
Check if Model State is valid and throw a 400
sigent Jun 28, 2018
28ca14a
Merge branch 'develop' of https://github.com/json-api-dotnet/JsonApiD…
sigent Jun 28, 2018
e1d097f
Merge branch 'master' of https://github.com/sigent/JsonApiDotNetCore …
sigent Jun 28, 2018
52c8f64
bumped version no
sigent Jun 28, 2018
6f8bfe5
styling updates
sigent Jun 28, 2018
0051faa
added ValidateModelState as feature flag in options
sigent Jun 28, 2018
bcd4560
Merge pull request #316 from sigent/feature/#252_valid_modelstate
jaredcnance Jun 28, 2018
29e1080
propagate model state errors
jaredcnance Jun 29, 2018
63598ab
chore(csproj): bump package version
jaredcnance Jun 29, 2018
e0c68b9
Merge pull request #320 from json-api-dotnet/feat/#319
jaredcnance Jun 29, 2018
516b70a
feat(DocumentBuilder): allow for output attribute filtering
jaredcnance Jul 2, 2018
eb35698
feat(csproj): add SourceLink
jaredcnance Jul 2, 2018
9ada0d6
Merge pull request #324 from json-api-dotnet/feat/#297
jaredcnance Jul 3, 2018
f0a32f3
Merge pull request #325 from json-api-dotnet/feat/#321
jaredcnance Jul 3, 2018
6ce049a
fix(AttrAttribute): unexpected scenarios cause breaking change
jaredcnance Jul 5, 2018
f08a79e
chore(build): include symbols in dotnet pack
jaredcnance Jul 5, 2018
566753d
Merge pull request #328 from json-api-dotnet/fix/#241
jaredcnance Jul 5, 2018
1f63300
specify symbols server for develop
jaredcnance Jul 5, 2018
e5ce366
Merge pull request #329 from json-api-dotnet/fix/#241
jaredcnance Jul 5, 2018
3483493
Merge pull request #330 from json-api-dotnet/develop
jaredcnance Jul 5, 2018
e183da8
attempt to reproduce issue in tests
jaredcnance Jul 5, 2018
d58f2ad
chore(appsettings): supress middleware logging
jaredcnance Jul 5, 2018
9563f0e
Merge pull request #334 from json-api-dotnet/chore/supress-middleware…
jaredcnance Jul 5, 2018
036e179
Merge pull request #332 from json-api-dotnet/fix/#318
jaredcnance Jul 6, 2018
9758b26
fix(relationship pointers): key pointers by RelationshipAttribute
jaredcnance Jul 5, 2018
e28b54b
chore(csproj): bump version 2.3.5
jaredcnance Jul 5, 2018
64333c7
fix(operations): interface hierarchy
jaredcnance Jul 7, 2018
f9744a2
Merge pull request #335 from json-api-dotnet/operations-fixes
jaredcnance Jul 7, 2018
4301a43
fix(UpdateOpProcessor): use correct interface
jaredcnance Jul 7, 2018
c31a2e6
fix(RequestScopedServiceProvider): do not access disposed scope
jaredcnance Jul 9, 2018
18de6fe
reset state between operations
jaredcnance Jul 9, 2018
9e33929
bump minor version
jaredcnance Jul 10, 2018
857ca05
Merge pull request #336 from json-api-dotnet/develop
jaredcnance Jul 10, 2018
68802bb
fix(#337): run tests serially
jaredcnance Jul 10, 2018
1354761
Merge pull request #338 from json-api-dotnet/fix/#337-serial-test-exe…
jaredcnance Jul 10, 2018
3484443
first pass at auto-discovery
jaredcnance Jul 2, 2018
7074002
fix tests
jaredcnance Jul 2, 2018
36a9ffe
use IResourceNameFormatter in ContextGraph
jaredcnance Aug 12, 2018
87a071f
add documentation
jaredcnance Aug 12, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
charset = utf-8

[*.{csproj,props}]
indent_size = 2
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
*.user
.couscous/
docs/Template-Dark/
.idea/
.idea/
**/_site/
log.txt
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
language: csharp
dist: trusty
sudo: required
services:
services:
- postgresql
before_script:
- psql -c 'create database JsonApiDotNetCoreExample;' -U postgres
mono: none
dotnet: 1.0.4 # https://www.microsoft.com/net/download/linux
dotnet: 2.1.300 # https://www.microsoft.com/net/download/linux
branches:
only:
- master
Expand Down
10 changes: 10 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "OperationsExample",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceRoot}/src/Examples/OperationsExample/bin/Debug/netcoreapp1.0/OperationsExample.dll",
"args": [],
"cwd": "${workspaceRoot}/src/Examples/OperationsExample",
"stopAtEntry": false
},
{
"name": ".NET Core Attach",
"type": "coreclr",
Expand Down
4 changes: 2 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"isShellCommand": true,
"args": [],
"options": {
"cwd": "${workspaceRoot}/src/Examples/JsonApiDotNetCoreExample"
"cwd": "${workspaceRoot}/src/JsonApiDotNetCore"
},
"tasks": [
{
Expand All @@ -17,4 +17,4 @@
"problemMatcher": "$msCompile"
}
]
}
}
41 changes: 31 additions & 10 deletions Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,55 @@ function Get-Version-Suffix-From-Tag
return $final
}

function CheckLastExitCode {
param ([int[]]$SuccessCodes = @(0), [scriptblock]$CleanupScript=$null)

if ($SuccessCodes -notcontains $LastExitCode) {
$msg = "EXE RETURNED EXIT CODE $LastExitCode"
throw $msg
}
}

$revision = @{ $true = $env:APPVEYOR_BUILD_NUMBER; $false = 1 }[$env:APPVEYOR_BUILD_NUMBER -ne $NULL];
$revision = "{0:D4}" -f [convert]::ToInt32($revision, 10)

dotnet restore

dotnet test ./test/UnitTests/UnitTests.csproj
CheckLastExitCode

dotnet test ./test/JsonApiDotNetCoreExampleTests/JsonApiDotNetCoreExampleTests.csproj
CheckLastExitCode

dotnet test ./test/NoEntityFrameworkTests/NoEntityFrameworkTests.csproj
CheckLastExitCode

dotnet test ./test/OperationsExampleTests/OperationsExampleTests.csproj
CheckLastExitCode

dotnet build .\src\JsonApiDotNetCore -c Release
CheckLastExitCode

echo "APPVEYOR_REPO_TAG: $env:APPVEYOR_REPO_TAG"
Write-Output "APPVEYOR_REPO_TAG: $env:APPVEYOR_REPO_TAG"

If($env:APPVEYOR_REPO_TAG -eq $true) {
$revision = Get-Version-Suffix-From-Tag
echo "VERSION-SUFFIX: $revision"
Write-Output "VERSION-SUFFIX: $revision"

IF ([string]::IsNullOrWhitespace($revision)){
echo "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts"
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts
Write-Output "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts"
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --include-symbols
CheckLastExitCode
}
Else {
echo "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision"
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision
Write-Output "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision"
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=$revision --include-symbols
CheckLastExitCode
}
}
Else {
echo "VERSION-SUFFIX: alpha1-$revision"
echo "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=alpha1-$revision"
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=alpha1-$revision
}
Write-Output "VERSION-SUFFIX: alpha1-$revision"
Write-Output "RUNNING dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=alpha1-$revision"
dotnet pack .\src\JsonApiDotNetCore -c Release -o .\artifacts --version-suffix=alpha1-$revision --include-symbols
CheckLastExitCode
}
10 changes: 7 additions & 3 deletions CONTRIBUTING.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@

## Workflow

1. Search through the issues to see if your particular issue has already been discovered and possibly addressed
2. Open an issue if you can't find anything helpful
3. Open a PR for proposed changes
1. Search through the issues to see if your particular issue has already been discovered and possibly addressed
2. Open an issue if you can't find anything helpful
3. Open a PR for proposed changes

## Commit Guidelines

I have chosen to loosely follow the [Angular Commit Guidelines](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit)

# Documentation

If you'd like to help us improve our documentation, please checkout our [GitHub pages repository](https://github.com/json-api-dotnet/json-api-dotnet.github.io) where we host our documentation.
30 changes: 30 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<Project>

<PropertyGroup>
<NetCoreAppVersion>netcoreapp2.0</NetCoreAppVersion>
<NetStandardVersion>netstandard2.0</NetStandardVersion>

<AspNetCoreVersion>2.1.0</AspNetCoreVersion>

<MicrosoftLoggingVersion>2.1.0</MicrosoftLoggingVersion>
<MicrosoftConfigurationVersion>2.1.0</MicrosoftConfigurationVersion>
<MicrosoftOptionsVersion>2.1.0</MicrosoftOptionsVersion>

<EFCoreVersion>2.1.0</EFCoreVersion>
<EFCoreToolsVersion>2.1.0</EFCoreToolsVersion>

<NpgsqlVersion>4.0.0</NpgsqlVersion>
<NpgsqlPostgreSQLVersion>2.1.0</NpgsqlPostgreSQLVersion>

<TuplesVersion>4.5.0</TuplesVersion>
</PropertyGroup>

<!-- Test Project Dependencies -->
<PropertyGroup>
<TestSdkVersion>15.7.2</TestSdkVersion>
<XUnitVersion>2.3.1</XUnitVersion>
<BogusVersion>22.1.2</BogusVersion>
<MoqVersion>4.8.3</MoqVersion>
</PropertyGroup>

</Project>
101 changes: 78 additions & 23 deletions JsonApiDotnetCore.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26228.9
VisualStudioVersion = 15.0.27130.2010
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JsonApiDotNetCore", "src\JsonApiDotNetCore\JsonApiDotNetCore.csproj", "{C0EC9E70-EB2E-436F-9D94-FA16FA774123}"
EndProject
Expand All @@ -15,18 +15,31 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C5B4D998-CECB-454D-9F32-085A897577BE}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
.travis.yml = .travis.yml
appveyor.yml = appveyor.yml
Build.ps1 = Build.ps1
build.sh = build.sh
Directory.Build.props = Directory.Build.props
README.md = README.md
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NoEntityFrameworkExample", "src\Examples\NoEntityFrameworkExample\NoEntityFrameworkExample.csproj", "{570165EC-62B5-4684-A139-8D2A30DD4475}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NoEntityFrameworkExample", "src\Examples\NoEntityFrameworkExample\NoEntityFrameworkExample.csproj", "{570165EC-62B5-4684-A139-8D2A30DD4475}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NoEntityFrameworkTests", "test\NoEntityFrameworkTests\NoEntityFrameworkTests.csproj", "{73DA578D-A63F-4956-83ED-6D7102E09140}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NoEntityFrameworkTests", "test\NoEntityFrameworkTests\NoEntityFrameworkTests.csproj", "{73DA578D-A63F-4956-83ED-6D7102E09140}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTests", "test\UnitTests\UnitTests.csproj", "{6D4BD85A-A262-44C6-8572-FE3A30410BF3}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitTests", "test\UnitTests\UnitTests.csproj", "{6D4BD85A-A262-44C6-8572-FE3A30410BF3}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{026FBC6C-AF76-4568-9B87-EC73457899FD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReportsExample", "src\Examples\ReportsExample\ReportsExample.csproj", "{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReportsExample", "src\Examples\ReportsExample\ReportsExample.csproj", "{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "benchmarks", "benchmarks", "{076E1AE4-FD25-4684-B826-CAAE37FEA0AA}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Benchmarks", "benchmarks\Benchmarks.csproj", "{1F604666-BB0F-413E-922D-9D37C6073285}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OperationsExample", "src\Examples\OperationsExample\OperationsExample.csproj", "{CF2C1EB6-8449-4B35-B8C7-F43D6D90632D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OperationsExampleTests", "test\OperationsExampleTests\OperationsExampleTests.csproj", "{9CD2C116-D133-4FE4-97DA-A9FEAFF045F1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -88,40 +101,82 @@ Global
{73DA578D-A63F-4956-83ED-6D7102E09140}.Release|x86.Build.0 = Release|Any CPU
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Debug|x64.ActiveCfg = Debug|x64
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Debug|x64.Build.0 = Debug|x64
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Debug|x86.ActiveCfg = Debug|x86
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Debug|x86.Build.0 = Debug|x86
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Debug|x64.ActiveCfg = Debug|Any CPU
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Debug|x64.Build.0 = Debug|Any CPU
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Debug|x86.ActiveCfg = Debug|Any CPU
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Debug|x86.Build.0 = Debug|Any CPU
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Release|Any CPU.Build.0 = Release|Any CPU
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Release|x64.ActiveCfg = Release|x64
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Release|x64.Build.0 = Release|x64
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Release|x86.ActiveCfg = Release|x86
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Release|x86.Build.0 = Release|x86
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Release|x64.ActiveCfg = Release|Any CPU
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Release|x64.Build.0 = Release|Any CPU
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Release|x86.ActiveCfg = Release|Any CPU
{6D4BD85A-A262-44C6-8572-FE3A30410BF3}.Release|x86.Build.0 = Release|Any CPU
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Debug|x64.ActiveCfg = Debug|x64
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Debug|x64.Build.0 = Debug|x64
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Debug|x86.ActiveCfg = Debug|x86
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Debug|x86.Build.0 = Debug|x86
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Debug|x64.ActiveCfg = Debug|Any CPU
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Debug|x64.Build.0 = Debug|Any CPU
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Debug|x86.ActiveCfg = Debug|Any CPU
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Debug|x86.Build.0 = Debug|Any CPU
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Release|Any CPU.Build.0 = Release|Any CPU
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Release|x64.ActiveCfg = Release|x64
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Release|x64.Build.0 = Release|x64
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Release|x86.ActiveCfg = Release|x86
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Release|x86.Build.0 = Release|x86
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Release|x64.ActiveCfg = Release|Any CPU
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Release|x64.Build.0 = Release|Any CPU
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Release|x86.ActiveCfg = Release|Any CPU
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D}.Release|x86.Build.0 = Release|Any CPU
{1F604666-BB0F-413E-922D-9D37C6073285}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1F604666-BB0F-413E-922D-9D37C6073285}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1F604666-BB0F-413E-922D-9D37C6073285}.Debug|x64.ActiveCfg = Debug|Any CPU
{1F604666-BB0F-413E-922D-9D37C6073285}.Debug|x64.Build.0 = Debug|Any CPU
{1F604666-BB0F-413E-922D-9D37C6073285}.Debug|x86.ActiveCfg = Debug|Any CPU
{1F604666-BB0F-413E-922D-9D37C6073285}.Debug|x86.Build.0 = Debug|Any CPU
{1F604666-BB0F-413E-922D-9D37C6073285}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1F604666-BB0F-413E-922D-9D37C6073285}.Release|Any CPU.Build.0 = Release|Any CPU
{1F604666-BB0F-413E-922D-9D37C6073285}.Release|x64.ActiveCfg = Release|Any CPU
{1F604666-BB0F-413E-922D-9D37C6073285}.Release|x64.Build.0 = Release|Any CPU
{1F604666-BB0F-413E-922D-9D37C6073285}.Release|x86.ActiveCfg = Release|Any CPU
{1F604666-BB0F-413E-922D-9D37C6073285}.Release|x86.Build.0 = Release|Any CPU
{CF2C1EB6-8449-4B35-B8C7-F43D6D90632D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CF2C1EB6-8449-4B35-B8C7-F43D6D90632D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CF2C1EB6-8449-4B35-B8C7-F43D6D90632D}.Debug|x64.ActiveCfg = Debug|Any CPU
{CF2C1EB6-8449-4B35-B8C7-F43D6D90632D}.Debug|x64.Build.0 = Debug|Any CPU
{CF2C1EB6-8449-4B35-B8C7-F43D6D90632D}.Debug|x86.ActiveCfg = Debug|Any CPU
{CF2C1EB6-8449-4B35-B8C7-F43D6D90632D}.Debug|x86.Build.0 = Debug|Any CPU
{CF2C1EB6-8449-4B35-B8C7-F43D6D90632D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CF2C1EB6-8449-4B35-B8C7-F43D6D90632D}.Release|Any CPU.Build.0 = Release|Any CPU
{CF2C1EB6-8449-4B35-B8C7-F43D6D90632D}.Release|x64.ActiveCfg = Release|Any CPU
{CF2C1EB6-8449-4B35-B8C7-F43D6D90632D}.Release|x64.Build.0 = Release|Any CPU
{CF2C1EB6-8449-4B35-B8C7-F43D6D90632D}.Release|x86.ActiveCfg = Release|Any CPU
{CF2C1EB6-8449-4B35-B8C7-F43D6D90632D}.Release|x86.Build.0 = Release|Any CPU
{9CD2C116-D133-4FE4-97DA-A9FEAFF045F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9CD2C116-D133-4FE4-97DA-A9FEAFF045F1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9CD2C116-D133-4FE4-97DA-A9FEAFF045F1}.Debug|x64.ActiveCfg = Debug|Any CPU
{9CD2C116-D133-4FE4-97DA-A9FEAFF045F1}.Debug|x64.Build.0 = Debug|Any CPU
{9CD2C116-D133-4FE4-97DA-A9FEAFF045F1}.Debug|x86.ActiveCfg = Debug|Any CPU
{9CD2C116-D133-4FE4-97DA-A9FEAFF045F1}.Debug|x86.Build.0 = Debug|Any CPU
{9CD2C116-D133-4FE4-97DA-A9FEAFF045F1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9CD2C116-D133-4FE4-97DA-A9FEAFF045F1}.Release|Any CPU.Build.0 = Release|Any CPU
{9CD2C116-D133-4FE4-97DA-A9FEAFF045F1}.Release|x64.ActiveCfg = Release|Any CPU
{9CD2C116-D133-4FE4-97DA-A9FEAFF045F1}.Release|x64.Build.0 = Release|Any CPU
{9CD2C116-D133-4FE4-97DA-A9FEAFF045F1}.Release|x86.ActiveCfg = Release|Any CPU
{9CD2C116-D133-4FE4-97DA-A9FEAFF045F1}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{C0EC9E70-EB2E-436F-9D94-FA16FA774123} = {7A2B7ADD-ECB5-4D00-AA6A-D45BD11C97CF}
{97EE048B-16C0-43F6-BDA9-4E762B2F579F} = {7A2B7ADD-ECB5-4D00-AA6A-D45BD11C97CF}
{97EE048B-16C0-43F6-BDA9-4E762B2F579F} = {026FBC6C-AF76-4568-9B87-EC73457899FD}
{0B959765-40D2-43B5-87EE-FE2FEF9DBED5} = {24B15015-62E5-42E1-9BA0-ECE6BE7AA15F}
{570165EC-62B5-4684-A139-8D2A30DD4475} = {7A2B7ADD-ECB5-4D00-AA6A-D45BD11C97CF}
{570165EC-62B5-4684-A139-8D2A30DD4475} = {026FBC6C-AF76-4568-9B87-EC73457899FD}
{73DA578D-A63F-4956-83ED-6D7102E09140} = {24B15015-62E5-42E1-9BA0-ECE6BE7AA15F}
{6D4BD85A-A262-44C6-8572-FE3A30410BF3} = {24B15015-62E5-42E1-9BA0-ECE6BE7AA15F}
{026FBC6C-AF76-4568-9B87-EC73457899FD} = {7A2B7ADD-ECB5-4D00-AA6A-D45BD11C97CF}
{FBFB0B0B-EA86-4B41-AB2A-E0249F70C86D} = {026FBC6C-AF76-4568-9B87-EC73457899FD}
{1F604666-BB0F-413E-922D-9D37C6073285} = {076E1AE4-FD25-4684-B826-CAAE37FEA0AA}
{CF2C1EB6-8449-4B35-B8C7-F43D6D90632D} = {026FBC6C-AF76-4568-9B87-EC73457899FD}
{9CD2C116-D133-4FE4-97DA-A9FEAFF045F1} = {24B15015-62E5-42E1-9BA0-ECE6BE7AA15F}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A2421882-8F0A-4905-928F-B550B192F9A4}
EndGlobalSection
EndGlobal
Loading