This question consists of two parts. The first part will consist of creating a Web API that
Question:
This question consists of two parts. The first part will consist of creating a Web API that will do CRUD (create, read, update, and delete) operations on courses. The second part will consist of an Angular application that will interact with the API and call the different methods in the web API.
Web API
Create a web project called coursesAPI.
Add a class called Instructor containing the variables firstname and lastname.
Create another class called Course containing three variables ID, title, crn, and another variable of type Instructor called instructor.
Create a class called CourseInitializer that creates a list of 3 courses and puts that in the cache.
Create the folder: Controller and in it create a controller called CourseController.
Create the CRUD operations (create, read, update, and delete) using proper HTTP verbs
- -GetCourses: gets all courses
- -GetCourse: gets a course by ID
- -CreateCourse: creates a course
- -UpdateCourse: updates the course’s title
- -DeleteCourse: deletes a course by ID
Make sure you use the proper HTTP verb for these methods.
Auditing and Assurance Services A Systematic Approach
ISBN: 978-1259162343
9th edition
Authors: William Messier, Steven Glover, Douglas Prawitt