๐๐๐ถ๐น๐ฑ๐ถ๐ป๐ด ๐ฅ๐๐ฆ๐ง ๐๐ฃ๐๐ ๐๐ถ๐๐ต ๐๐ผ๐น๐ฑ๐๐๐๐ถ๐ผ๐ป ๐ฎ๐ฌ๐ฎ๐ฑ
ColdFusion supports REST APIs.
Set up your CFC with rest="true" and a restpath. Mark methods as remote. Add an httpmethod. Register your app with restInitApplication().
Handle the three hard parts of production APIs:
- JWT Auth: Use CreateSignedJWT() and VerifySignedJWT(). These work in ColdFusion 2023 and 2025.
- Rate Limiting: Use the ColdFusion API Manager for SLA throttling. It returns HTTP 429. Or build a token-bucket with cacheGet and cachePut.
- CORS: Set Access-Control headers. Answer the browser OPTIONS request. Do this for error responses too.