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.
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:
Models | Choose your model |
Platform | Here the platform that you have already selected will come up the platform such as admin, mobile, front(website), and desktop. |
Methods | Choose from the HTTP methods below :POST | GET | PUT | DELETE | PATH | HEAD | OPTIONS | PURGE | LINK | UNLINK | PATCH | OPTIONS |
Routes | Enter API route (path) used to call appropriate API |
Controller | Enter the name of the controller from where the function is called |
Action | Enter the function name you would like to create in the controller |
Attributes | Your |
Attributes | Select request parameters (attributes) for your route |
Descriptions | Enter the description for the route here |
Got a question? Ask here.