Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

@api‐contenttype

Jon Ursenbach edited this page Jan 4, 2020 · 1 revision

The @api-contenttype annotation designates the HTTP Content-Type that a resource action returns.

Syntax

@api-contenttype content-type

Requirements

Required? Needs a visibility Supports versioning Supports deprecation
× ×

Breakdown

Tag Optional Description
content-type × HTTP Content-Type that a resource action returns.

Examples

/**
 * ...
 *
 * @api-contenttype application/json
 *
 * ...
 */
public function PATCH()
{
    ...
}