Create a Asp MVC Web API project in visual studio called: TestWebApi.
Add 2 controllers to the api and each should contain a Get, Post, Put and Delete method:
PatientsController
AppointmentsController
Create 2 models with the following properties:
Appointment
Id (int)
PatientId (int)
AppointmentTime (DateTime)
Notes (string) (length = 200)
Patient
Id (int)
FirstName (string) (length = 50)
LastName (string) (length = 50)
DateOfBirth (datetime)
Appointments (List)
Create a static data source for getting patients and appointments. Each list should contain 5 entries.(e.g.):
var patients = new List< Patient>(); patients.Add(new Patient () Id = 1, FirstName = "Patient First 1", LastName = "Patient Last 1", DateOfBirth = "01/01/1971", );
Create a project (any type you choose) and use it to retrieve and save data from the API
Add the ability to the API to distinguish where the request is coming from if we have multiple clients and applications connecting. E.g. (console, desktop, web, and mobile applications).
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference
and should not be submitted as is. We are not held liable for any misuse of the solutions.
Please see the frequently asked questions page
for further questions and inquiries.
Kindly complete the form.
Please provide a valid email address and we will get back to you within 24 hours.
Payment is through PayPal, Buy me a Coffee
or Cryptocurrency.
We are a nonprofit organization however we need funds to keep this organization operating
and to be able to complete our research and development projects.