API introspection – List packages, resources and their interfaces

Found 2 resources


Resource class ContentVendor\Controller\Asset\V1\AssetFileController of type EntityController
Access controlled by ContentVendor\Core\Api\AccessRule\ApiAccessRule

Skeleton class for controlling a row from the 'AssetFileModel' table.

FIXME: Disable caching for restricted assets

Name Type Size Default Description Visible Mutable Nullable
FileName VARCHAR 128 not set yes no no
FileExtension VARCHAR 16 not set yes no no
MimeType VARCHAR 64 not set yes no no
FileSize VIRTUAL not set yes no yes
Uri VIRTUAL not set yes no yes
DownloadUri VIRTUAL not set yes no yes
CreatedAt TIMESTAMP not set yes no yes
UpdatedAt TIMESTAMP not set yes no yes
Uuid VARCHAR 36 not set yes no no

Interfaces

Found 4 interfaces in class ContentVendor\Controller\Asset\V1\AssetFileController

Resource: AssetFile, Method: load

Loads a model enitiy from the table defined by the model class name

Endpoint
GET /asset/v1/asset-file/{uuid}/
Request header
The Clients Last Modified Date Time As HTTP Date (RFC 2616) named If-Modified-Since
Bearer Token named Authorization
Response header
The Servers Cache Control Instruction named Cache-Control
The Servers Cache Expiration Instruction As HTTP Date (RFC 2616) named Expires
The Servers Last Modified Date Time As HTTP Date (RFC 2616) named Last-Modified
Response data
FilteredAssetFileControllerModel named AssetFileModel

Resource: AssetFile, Method: raw

Provides the asset file as binary. If the asset file is an image it will be optimized.

Endpoint
GET /asset/v1/asset-file/{uuid}/raw/
Request header
The Clients Last Modified Date Time As HTTP Date (RFC 2616) named If-Modified-Since
Response header
The Servers Cache Control Instruction named Cache-Control
The Servers Cache Expiration Instruction As HTTP Date (RFC 2616) named Expires
The Servers Last Modified Date Time As HTTP Date (RFC 2616) named Last-Modified

Resource: AssetFile, Method: download

Provides the asset file as binary attachment

Endpoint
GET /asset/v1/asset-file/{uuid}/download/
Request header
The Clients Last Modified Date Time As HTTP Date (RFC 2616) named If-Modified-Since
Response header
The Servers Cache Control Instruction named Cache-Control
The Servers Cache Expiration Instruction As HTTP Date (RFC 2616) named Expires
The Servers Last Modified Date Time As HTTP Date (RFC 2616) named Last-Modified

Resource: AssetFile, Method: optimized

Provides the asset file as binary. If the asset file is an image it will be resized and optimized.

Endpoint
GET /asset/v1/asset-file/{uuid}/optimized/{?width}/{?height}/
Request header
The Clients Last Modified Date Time As HTTP Date (RFC 2616) named If-Modified-Since
Response header
The Servers Cache Control Instruction named Cache-Control
The Servers Cache Expiration Instruction As HTTP Date (RFC 2616) named Expires
The Servers Last Modified Date Time As HTTP Date (RFC 2616) named Last-Modified