Closed amolkittur closed 1 month ago
Objective: Write comprehensive test cases for the newly implemented endpoints.
Details:
POST /register/accounts
POST /register/active
POST /register/broker
POST /register/profile
POST /register/strategies
POST /register
Objective: Review and update documentation and configurations based on the recent changes in the endpoints.
Details:
I've updated the accounts schema according to the required format. The changes are now reflected in the latest commit.
Please review the updates at your earliest convenience. Let me know if there are any issues or further modifications needed.
Thanks!
🔄 Updated Files:
User/UserApi/schemas.py
@Anand-ak7 I have created a new endpoint to fetch the user_id from the admin collection from firebase.
Also we need to pass the user_id in the endpoints releated to registering the user.
Please go through it and let me know if any changes are to be made.
@amolkittur Any tasks pending in this issue? If not please close it
Closing this sub-issue:
All the endpoints are working as expected and we can close this issue now.
Resolution:
Enhancement
Closing as resolved.
Here are the current endpoints
GET /swagger
POST /v1/user/login
POST /v1/user/register
GET /v1/user/profile-page
GET /v1/user/portfolio-stats-view
GET /v1/user/monthly-returns
GET /v1/user/weekly-cummulative-returns
GET /v1/user/individual-strategy-data
GET /v1/user/strategy-graph-data
GET /v1/user/strategy-statistics
GET /v1/user/user-broker-transactions
GET /v1/user/users-strategy
GET /v1/user/users-holdings
GET /v1/user/strategy-params/{strategy_name}
PUT /v1/user/strategy-params/{strategy_name}/{section}
PUT /v1/admin/market-info-params
GET /v1/admin/market-info-params
PUT /v1/admin/strategy-qty-amplifier
GET /v1/admin/user-strategy-risk-params
PUT /v1/admin/user-strategy-risk-params
These endpoints cover a range of functionalities including user authentication, profile management, portfolio and strategy data retrieval, transaction history, and various administrative tasks related to market information and risk management.
Changes Made
Description: Registers a new user with the provided details.
Schemas: Includes sub-endpoints for Accounts, Active, Broker, Profile, and Strategies to allow for modular data submission. Each section can be submitted independently, stored temporarily, and then merged upon final registration.
New Endpoints:
/register/accounts
: Temporarily stores account details for the user./register/active
: Temporarily stores active status for the user./register/broker
: Temporarily stores broker details for the user./register/profile
: Temporarily stores profile details for the user./register/strategies
: Temporarily stores strategy details for the user./register
: Merges and registers all provided user data into a final user profile upon completion of data submission.