Cheat sheet
Resource Routing
Details: Resource Routing
Feature | Example | Resolved Route |
---|---|---|
Auto route | @autoRoute op get(@segment("pets") @path id: string): void | /pets/{id} |
Custom segment seperator | @autoRoute op get(@segment("pets") @path @segmentSeparator(":") id: string): void | :pets/{id} |