Slide 14
Slide 14 text
• CFC Driven
• Can leverage status codes
• Can leverage verbs
• Can leverage URIs
• Maybe testable
• Instant grati
fi
cation
• Manual Processes
• CORS manually
• Security manually
• Every URL starts with /rest/{appname}
• BIF method for custom status codes,
headers, content
• Impossible to test or mock (bound to the engine)
• restSetResponse()
• Register base URLs via admin, admin API or
methods
• Security is a pain since CFC methods are
called
• No documentation
• Maybe testable
• Relies on pure inheritance for reuse
• Careful on not setting this.restSettings.location,
EVERY CFC is scanned.
API - version 0.5
√ Pros X Cons