Click or drag to resize
CMS.WebApi Namespace
Public classCode exampleAllowOnlyEditorAttribute
Restricts access to controller only for the editors.
Public classCMSApiController
Base class for all CMS ApiControllers.
Public classCode exampleHandleExceptionsAttribute
Handles exceptions thrown when processing controller's actions, ensures that internal exceptions are properly logged to the Event log.
Public classIsAuthorizedPerResourceAttribute
Restrict access for authorized user with given resource name and permission.
Public classIsFeatureAvailableAttribute
Restrict access when necessary feature is not available in the best license.
Public classUseDefaultJsonMediaTypeFormatterAttribute
Controller decorated with this attribute uses JsonMediaTypeFormatter to handle JSON formatting.