Skip to content

Complete Investment Performance Web API Coding Exercise#63

Open
mitchellplute98 wants to merge 1 commit intoNuix:masterfrom
mitchellplute98:master
Open

Complete Investment Performance Web API Coding Exercise#63
mitchellplute98 wants to merge 1 commit intoNuix:masterfrom
mitchellplute98:master

Conversation

@mitchellplute98
Copy link

Investment Performance Web API - Complete Implementation

🎯 Summary

This PR implements a complete, production-ready Investment Performance Web API that fulfills all requirements from the coding exercise.

✅ Requirements Fulfilled

  • Get user investments list: Returns investment ID and name via GET /api/investments/user/{userId}
  • Get investment details: Returns shares, cost basis, current value, current price, term, and total gain/loss via GET /api/investments/investment/{investmentId}
  • All business logic implemented: Proper calculations for gains/losses and term classification
  • Access the Readme.md for any questions or reach out to me at mitchellplute@gmail.com.

🏗️ Implementation Highlights

  • Framework: ASP.NET Core 9.0 with C#
  • Architecture: Clean architecture with dependency injection
  • Testing: 27 comprehensive unit tests with 100% pass rate
  • Documentation: Swagger/OpenAPI integration with XML comments
  • Production Features: Exception handling, logging, input validation, CORS, HTTPS

🧪 Testing

cd CodingExercise.Tests
dotnet test
# Result: 27 tests passed, 0 failed

- Implemented RESTful API with two main endpoints
- Added comprehensive business logic for investment calculations
- Included full test suite (27 unit tests)
- Added Swagger documentation and error handling
- Production-ready with logging and CORS support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants