REST Compat +
A comprehensive CFML RESTful services compatibility module for BoxLang that provides compatibility for the CFML REST implementations
BoxLang REST Compatibility Module
Overview
Installation
Add a servlet pass predicate which will match your default entry prefix in the web section of your server.json
web section of your server.json"web":{
"servletPassPredicate":"regex( '^/(.+?\\.cf[cms])(/.*)?$' ) or regex( '^/(.+?\\.bx[sm])(/.*)?$' ) or path-prefix-nocase( /rest/ )",
...
}Install the module on your initial server start
Seed your server directory with a dryRun start and update the web.xml file
web.xml fileStart your server and go
Configuration
Quick Start
1. Create a REST-Enabled Component
2. Register Your REST Application
3. Access Your REST Endpoints
Built-in Functions (BIFs)
restInitApplication()
restSetResponse()
restDeleteApplication()
OpenAPI Documentation
Advanced Features
Path Parameters
Custom HTTP Status Codes
Content Negotiation
Error Handling
Compatibility
Last updated
Was this helpful?
