- Defining Routes
- Creating routes with different HTTP methods: GET, POST, PUT, DELETE.
- Understanding route path parameters and query parameters.
- Route configuration:
handler
,tags
,auth
,validate
, andresponse
.
- Route Handlers
- Writing handlers to process incoming requests and generate responses.
- Accessing request data (headers, payload, query parameters) within handlers.
- Route Validation with Joi
- Introduction to Joi for schema validation.
- Defining request payload and query parameter schemas.
- Handling validation errors and sending appropriate responses.
Building and Managing Routes