Skip to content

Rest API Routes

Ushakov Michael edited this page Jun 26, 2026 · 3 revisions

Standard routes

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.

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;)

image

Clone this wiki locally