Skip to main content

Routes

Once the models are created, DhiWise auto-generates routes (The pathway of APIs). Furthermore, new routes can be added and edited with the help of query builder and its advance configuration options.

Therefore, instead of writing lengthy code manually for routes, models, and APIs, developers can simply click a few options to add, edit, manage and configure routes for multiple models within minutes.

View routes

On the left-hand side, you can see the models you have created. You can select the model in which route you want to edit or altogether create add a new route.

You can ever filter routes quickly by clicking on the filter symbol in the top right-hand corner.

You can see all your model routes.

Example banner

Add route

Configure and add a route, you will see four categories such as basic, advance, and configuration.

In basic you have to input all the below details:

ModelsChoose your model
PlatformHere the platform that you have already selected will come up the platform such as admin, mobile, front(website), and desktop.
MethodsChoose from the HTTP methods below :
POST | GET | PUT | DELETE | PATH | HEAD | OPTIONS | PURGE | LINK | UNLINK | PATCH | OPTIONS
RoutesEnter API route (path) used to call appropriate API
ControllerEnter the name of the controller from where the function is called
ActionEnter the function name you would like to create in the controller
AttributesYour
AttributesSelect request parameters (attributes) for your route
DescriptionsEnter the description for the route here

Example banner



Got a question? Ask here.