Skip to main content
ant generate subroute appends a new endpoint to an existing route’s Blueprint, and adds corresponding methods to the service and repository.

Syntax

Run this command from the project root. The parent route must already exist.

Arguments

Options

Examples

GET subroute

Creates GET /users/profile.

POST subroute

Creates POST /users/create.

POST with mock data

GET with mock file

Machine-readable output

Files modified

Generated method naming

Pre-conditions

The parent route files must exist. If not:

Duplicate detection

If the subroute method already exists in the route file, a warning is printed and the file is left unchanged:

Success output