Skip to content

core ​

Interfaces ​

InterfaceDescription
GenerateSpecOptionsOptions for OpenAPI spec generation

Type Aliases ​

Type AliasDescription
ApiPermissionREDCap API permission levels
OpenApiSpecOpenAPI specification (simplified type)

Variables ​

VariableDescription
CONTENT_KEY_MAPPINGMap PHP help.php keys to API content type names
CONTENT_TYPE_ACTIONSContent type to supported actions mapping
CORE_CONTENT_TYPESContent types available in all supported versions
getActionsForContentTypeGet available actions for a content type
getContentTypesForVersionGet all available content types for a version
getContentTypesInGroupGet all content types in a tag group
getTagGroupGet the tag group for a content type
isActionAvailableCheck if an action is available for a content type
isContentTypeAvailableCheck if a content type is available for a version
mapContentKeyToTypeMap content key to normalized content type
mapPermissionMap permission code to readable name
PERMISSION_MAPPINGMap permission codes to readable names
TAG_GROUPSOpenAPI tag groups for organizing endpoints
V15_CONTENT_TYPESContent types added in v15+
V16_CONTENT_TYPESContent types added in v16+

Functions ​

FunctionDescription
comparePathsCompare paths between two specs
comparePatternsCompare patterns and enums in matching schemas
compareSchemasCompare schemas between two specs
compareSpecsCompare two OpenAPI specs and return a summary
generateOpenApiSpecGenerate OpenAPI 3.1.0 specification from parsed REDCap data
parseActionFileParse an action file content to extract validation and response info
parseActionFilesParse multiple action files from a map of content
parseClassSchemasParse all class schemas from a map of class file contents
parseCurlExampleParse a single curl example file
parseCurlExamplesParse multiple curl example files
parseHelpPhpParse help.php content to extract documentation and parameters
parseIndexPhpParse index.php content to extract content types and routing
parseProjectSchemasParse Project.php content to extract project-related schemas
parseUserRightsSchemasParse UserRights.php content to extract user rights schema

References ​

ActionFileInfo ​

Re-exports ActionFileInfo


ApiAction ​

Re-exports ApiAction


ComparisonResult ​

Re-exports ComparisonResult


ComparisonSummary ​

Re-exports ComparisonSummary


ContentTypeInfo ​

Re-exports ContentTypeInfo


HelpSection ​

Re-exports HelpSection


Parameter ​

Re-exports Parameter


ParameterType ​

Re-exports ParameterType


SchemaDefinition ​

Re-exports SchemaDefinition