Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b86yyhhudsSLnwNUFY
734 B
734 B
name, description, argument-hint, allowed-tools
| name | description | argument-hint | allowed-tools |
|---|---|---|---|
| new-endpoint | Adds a REST endpoint to the orders service the way this project does it (controller, service, tests). Use when asked to add or extend an endpoint. | [what the endpoint should do] | Bash(mvn *) |
Add an endpoint for: $ARGUMENTS
Follow these steps in order.
- Read
OrderControllerandOrderServicefirst and copy their style. - Put business logic in
OrderService, a unit test inOrderServiceTestfirst (red), then the code (green). - Add the controller method and a MockMvc case in
OrderControllerTest. - Run
mvn -B -q test. Do not report done until it is green. - Reply with the new route, the status codes it returns, and the test names you added.