-
Notifications
You must be signed in to change notification settings - Fork 13
Rest API Routes
Ushakov Michael edited this page Jul 2, 2026
·
3 revisions
By default all controllers that are derived from WebApiToolkit base 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.
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;)
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.