Routing & Controllers
Routes in RapidREST are composed of plain classes decorated with @Route and one or more methods that have been decoratored with at least one desired
HTTP-method (e.g. @Get, @Post, @Put). There's no separate router file. A route class is discovered and registered the moment it's exported
anywhere under src/ (see Auto-Discovery).
- Defining Routes -
@Route, the HTTP method decorators, and how handlers get called. - Request Parameters - pulling data out of the request with
@Param,@Query,@Header,@Body, and friends. - Lifecycle & Validation -
@Before/@Aftermiddleware chains,@Validate, and@ContentType.