Register
Submit a solution
The challenge is finished.

Challenge Overview

Background 

TopCoder is considering to refactor the TC Direct application by using RESTful APIs instead of calling various EJBs and directly contacting the underline database, which will allow us to begin decoupling TC Direct from its existing backend and provide exposure to some of its core services. As a first step, we want to avoid rewriting some of the complex business logic.

For the initial stage, we'd like to use AWS Lambda Function and AWS API Gateway to wrap around the EJB calls and database calls, and make the TC Direct to call the AWS API gateway instead.  This way we isolate the depenencies between TC Direct and EJB services/informix, then we can move ahead quickly.

Scope

Previously in we have launched severeal challenges like Proof Of Concept - AWS Lambda Function to Invoke Direct EJB Service etc, and sorted out the way to use AWS Lambda Function to wrap arround the EJB Calls and  Database Calls.

For this challenge, we'd like to follow the same approach to create AWS Lambda Function for getting general project info, like budget, current spend, resources, billing acct, etc. 

In Topcoder direct, these data are hold inside the com.topcoder.direct.services.view.dto.project.ProjectGeneralInfoDTO

The lambda function will going to mimic the same logic as in com.topcoder.direct.services.view.action.project.ProjectOverviewAction, the part for filling data for com.topcoder.direct.services.view.dto.project.ProjectGeneralInfoDTO.

the code logic for others can be ignored.

Requirements

1. The only input should be the project id to retrieve

2. Please create the swagger api doc for the created aws lambda function, and example, will be provided in forum.

3. Please use AWS lambda swagger https://github.com/awslabs/aws-apigateway-importer to create api gateway endpoint using the created swagger api doc, and hook it with the aws lambda function

4. The json response should be simple and clear.

Reference

1. Competitors need to request your own VM for development and testing.

2. For testing the getting general project info operation,  you can directly create in Topcoder Direct for testing purpose.

3. You can visit http://<<vm-ip>>:8580/ to find the JNDI lookup name for remote EJB calls.

4. Please reuse any components in TC Direct instead of creating your own if possible. 

5. The previous challenges will be provided in forum for reference.

VM ENVIRONMENT

If you need a TopCoder VM to work on this challenge, Please request the VM in the challenge forum.

Information about VM can be found below:

VM specific information is found here: http://www.topcoder.com/wiki/display/docs/VM+Image+2.5 and https://github.com/appirio-tech/direct-app/blob/dev/README.md

Upon registration as a submitter or reviewer you will need to request a VM based on the new TopCoder Cockpit/Direct image. To request your image, please use the forum. Before requesting your VM, you need to ensure that you have an SSH key created and in your member profile. Instructions to do so are here: http://www.topcoder.com/wiki/display/projects/Generate+SSH+Key, and instructions to connect afterwards are here:http://www.topcoder.com/wiki/display/projects/Connect+Using+SSH+Key.



Final Submission Guidelines

  • Complete source code for aws lambda function
  • Working VM and aws lambda function for testing
  • Deployment Guide and Verification Documentation

ELIGIBLE EVENTS:

2016 TopCoder(R) Open

Review style

Final Review

Community Review Board

Approval

User Sign-Off

ID: 30053643