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/ )",
...
}Add a web.xml override to your server.json to allow the servlet to pass REST routes to BoxLang
server.json to allow the servlet to pass REST routes to BoxLangUpdate your server file to install the module on your initial server start
Start 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?
