-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Bug Description:
- Detailed Description:
BothOperationControllerandStockControlleruse 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 changeStockControllerto use/api/stock-detailsor/api/stocks/info:@RestController @RequestMapping("/api/stocks/info") public class StockController { ... }
- Test Endpoints:
Verify that all endpoints are accessible and return the expected responses after the change.
- Decide on Clear Responsibilities: