Register
Submit a solution
The challenge is finished.

Challenge Overview

CHALLENGE OBJECTIVES

This challenge will implement one API, which accepts POSTed input and writes into a network directory demoted by UNC path
The submission phase of this challenge is 72 hours!

PROJECT BACKGROUND

Wellmark is a health insurance company which has run dozens of projects already on Topcoder.

The objective of this project is to build Mailroom API for their Customer Interaction Management division.

Tech Stack

  • Typescript
  • Nodejs 12
  • NestJs

Individual Requirement

  1. Create Mailroom API with NestJs (major)

    • Implement endpoint POST /data, accepting form-data including two files: pdf and metadata
    • There are two environment variables OMS_CIM_INPUT and OUTBOUND_MAIL_INTAKE. Both represent UNC path. The PDF file should be written to OMS_CIM_INPUT, and the metadata file should be written to OUTBOUND_MAIL_INTAKE.
    • The endpoint requires a valid JWT token
    • Implement proper error logging, this will log all errors, exceptions, warnings, debug information. Error level should be configurable from one environment variable so that we can switch to ERROR in production while using DEBUG for development.
    • After writing both files into the folders, send one request to POST / {ROOT_URI_OUTBOUND_MAIL_PROCESSOR}/job. In the body requestContext.Source.System.stagingEnvironment is got from env NODE_ENV and requestContext.Source.System.datacenterEnvironment is got from env DATACENTER_ENV. The rest of the request body could simply use sample body data.

    For all environment variables, including those not mentioned but required, such as JWT related, their names should be prefixed with WM_MRA_ (Wellmark Mailroom API)
    A detail doc is shared in the forum.

  2. Add Unit tests (major)



Final Submission Guidelines

Please submit the zip file containing the following:

  • New Mailroom API codebase, including README
  • the README file will describe the following:
    • Prerequisites.
    • Instructions on how to configure the API
    • Instructions on how to run the API locally
    • Instructions on how to verify

ELIGIBLE EVENTS:

2020 Topcoder(R) Open

Review style

Final Review

Community Review Board

Approval

User Sign-Off

ID: 30117945