Skip to content

viveknatarajan/senior-tech-interview

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

senior-tech-interview

Run

dotnet run --project PatientAPI/PatientAPI.csproj

Unit Test (Partially covered)

dotnet test

Credentials : test@test.com | test

API:

  1. Create a new .NET project that will host three endpoints:
    1. GET /patients
    2. GET /patients/{patientId}
    3. POST /login (This should take in an email and password and return the auth information else 401 if the creds are invalid. You may stub/hardcode this.)
  2. Endpoints should be protected by authentication. You may stub/hardcode this but callers must provide an auth header of the form: "Bearer {authToken}"
  3. The patient endpoints should internally call into a patient-service API that we have provided for you at the following url: https://ti-patient-service.azurewebsites.net
    1. Fetch the list of patients by sending a GET request to /patients
    2. Fetch a specific patient by sending a GET request to /patient/{patientId}
    3. There is no authentication for these endpoints
  4. Your API project should not expose the patient IDs from the patient-service API. Provide an alternative method of addressing specific patients that your front end will use when calling your API.
  5. Make use of dependency injection and class interfaces. You can use whatever DI framework you wish.
  6. Make use of a configuration file to store the URL for the patient-service API (and any other values you wish). This should be the only place in your code where the URL for the patient-service is stored.
  7. Separate the code for calling the patient-service API into its own class with an interface. Register this class to be used with your dependency injection framework and use that injection in your code where appropriate.
  8. Your application can be structured in anyway that you choose, other than these requirements.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 96.2%
  • Dockerfile 3.8%