DEV Community

Zada_Zini
Zada_Zini

Posted on • Updated on

The Everyday Life of an HNG Intern; Isaac Ojerumu’s Story

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;

  1. getCompanies(): This endpoint gives users access to all the companies featured on the software.

Image description
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.

Image description

  1. byCompanyId($id): This carries out the function of searching for companies on the software by their ID.

Image description
4.getCompanyByUserId($user_id): This enables a user to search for a company using his\her own ID.

Image description
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)

Collapse
 
kosmanvictor1 profile image
Kosman

Another exciting one