REST mappings

I have a windows install and setup a Lucee server through commandbox. Site works fine but I cannot setup a REST mapping. In the web admin I have the virtual path setup:
virtual: /api
physical: C:\mypath\server\wwwroot\TestProject\cfc

But when I go to http://localhost:55113/rest/ I get the message “Not Found” .

Any help would be appreciated.

You need to enable the rest servlet filter. It’s off by default in CommandBox because the built in rest sucks and no one uses it.

https://commandbox.ortusbooks.com/embedded-server/configuring-your-server/rest-servlet

If you need rest, I’d really just recommend using ColdBox, which is far more powerful, more supported, easier to use, and doesn’t require a special servlet filter.

https://coldbox.ortusbooks.com/digging-deeper/recipes/building-rest-apis

Thanks!

~Brad

Developer Advocate
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com