You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Detailed Description:
Both OperationController and StockController use the base mapping /api/stocks, which can lead to conflicts or unexpected behavior in routing. This ambiguity might result in some endpoints not being reached as intended.
How to Solve:
Decide on Clear Responsibilities:
Review the endpoints provided by each controller. If they serve different purposes (e.g., one for CRUD operations and another for external API calls), consider separating their base paths.
Update Mappings:
For example, you could change StockController to use /api/stock-details or /api/stocks/info:
Bug Description:
Both
OperationControllerandStockControlleruse the base mapping/api/stocks, which can lead to conflicts or unexpected behavior in routing. This ambiguity might result in some endpoints not being reached as intended.Review the endpoints provided by each controller. If they serve different purposes (e.g., one for CRUD operations and another for external API calls), consider separating their base paths.
For example, you could change
StockControllerto use/api/stock-detailsor/api/stocks/info:Verify that all endpoints are accessible and return the expected responses after the change.