You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ushakov Michael edited this page Jul 2, 2026
·
3 revisions
Standard routes
By default all controllers that are derived from WebApiToolkitbase controller classes have the prefix ~/api/[Controller]. If we are having an OrganizationController class derived from BasicCrudController, it has all HTTP endpoints starting from the /api/Organization prefix.
Custom Controller Routes
It is possible to change a prefix in a individual Controllers by setting the Route attribute with appropriate template, if we are going to add version to Route it should be done as follows (see the correct import using Microsoft.AspNetCore.Mvc; not the using Microsoft.AspNetCore.Component;)
Standard methods switch off
Sometimes there are cases when not all basic controller methods are required; you could switch some (or even all) of them off and easily back them on; see this page for how.