Skip to content

Make AddJsonApi chainable #299

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

Merged
merged 1 commit into from
Jun 12, 2018
Merged

Make AddJsonApi chainable #299

merged 1 commit into from
Jun 12, 2018

Conversation

btecu
Copy link
Contributor

@btecu btecu commented Jun 12, 2018

Currently, it is not possible to chain AddJsonApi:
services.AddJsonApi<DbContext>().AddMvcCore()

It should be, to be inline with all other apis (including all Microsoft).

It's not a breaking change. I've modified the example application and a test to use it.

I also thought about adding it to AddJsonApiInternals but that should be private - seems like it will be in the future.

@jaredcnance
Copy link
Contributor

Looks good. Thanks!

@jaredcnance jaredcnance merged commit 3fc1099 into json-api-dotnet:master Jun 12, 2018
jaredcnance added a commit that referenced this pull request Aug 12, 2018
Make `AddJsonApi` chainable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants