You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an endpoint in the JobController to update a job application using its ID.
Be sure to follow the CQRS pattern that is in place, keeping the API call down to a few lines of code with the bulk being inside the Application layer.
You will need to also implement the Update function in the Persistence layer inside the Repository.cs file.
The endpoint should receive the id of the job application as part of the route, with the new object to update inside the body.
If the object is saved successfully, return an Ok
If the id cannot be found, return a NotFound
If the object is invalid, return a UnprocessableEntity
The endpoint should return a status code with no other information.
Create an endpoint that will receive an id in the route, and the update job request in the body
Create a command for validating and transforming the request into a proper object to be saved in the database
Create a repository method for updating a record in the database (you will need to update the IRepository.cs file as well)
Bonus points if you can write tests to cover the new code you are adding. For full coverage, you may need to write a variety of unit tests, API tests, and integration tests.
The text was updated successfully, but these errors were encountered:
Create an endpoint in the JobController to update a job application using its ID.
Be sure to follow the CQRS pattern that is in place, keeping the API call down to a few lines of code with the bulk being inside the Application layer.
You will need to also implement the Update function in the Persistence layer inside the Repository.cs file.
The endpoint should receive the id of the job application as part of the route, with the new object to update inside the body.
If the object is saved successfully, return an Ok
If the id cannot be found, return a NotFound
If the object is invalid, return a UnprocessableEntity
The endpoint should return a status code with no other information.
Bonus points if you can write tests to cover the new code you are adding. For full coverage, you may need to write a variety of unit tests, API tests, and integration tests.
The text was updated successfully, but these errors were encountered: