Task 5
New tasks were awarded to members of the Backend Track in Team Axle, individually. Isaac’s task was to work on the project's; The Engineering 360, controller.
A controller plays the role of the directive traffic between views and models in an MVC Framework.
This controller in question comprised four endpoints;
- getCompanies(): This endpoint gives users access to all the companies featured on the software.
2.UpdateCompany(CompanyRequest $request, $company_id): It allows the admin to carry out the act of editing the company’s details that are displayed on the software.
- byCompanyId($id): This carries out the function of searching for companies on the software by their ID.
4.getCompanyByUserId($user_id): This enables a user to search for a company using his\her own ID.
After finishing off with the controller and its endpoints, Isaac pushed his work to Github’s repository.
Dear reader, thank you for walking through this story with me. I hope that this episode and the series as a whole have been insightful, educative, and inspiring. See you on the next page.
Please, let's get in touch on Medium; Zini Zada, and Twitter; Zada_Zini
Link to the next episode: https://dev.to/zadazini/the-everyday-life-of-an-hng-intern-isaac-ojerumus-story-5h3j
Top comments (1)
Another exciting one