-
-
Notifications
You must be signed in to change notification settings - Fork 158
Hard dependency to MVC setup #71
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
Comments
Okay I just realized that the dependency in IServiceCollectionExtensions is actually not that hard since you can basically do everything on your own what's done in _addInternals: services.AddJsonApiInternals<TContext>(jsonApiOptions);
services.AddMvc()
.AddMvcOptions(opt => {
opt.Filters.Add(typeof(JsonApiExceptionFilter));
opt.SerializeAsJsonApi(jsonApiOptions);
});
What do you think? |
I think that was my original intent for extensibility
I think this is a good solution |
Fix #71 Hard dependency to MVC setup
@JanMattner did you want to add an overload for the services? or I can do it tonight. i'd like to get both of these in before pushing develop into master |
@jaredcnance No sorry, probably can't do it this weekend |
Add IMvcBuilder Overload to IServiceCollectionExtensions
Uh oh!
There was an error while loading. Please reload this page.
Currently, MVC is setup inside the JSONAPI Framework's own calls and there is no possibility to customize the MVC setup e.g. with custom options. There should be a possibility to customize the calls or do them on one's own.
Particularly: IApplicationBuilderExtension and IServiceCollectionExtensions
... working on it...
The text was updated successfully, but these errors were encountered: