Changelog
5.0.0
- Read
TYPO3_*attributes of the serialization context fromNormalizedof the current request instead ofParams General(deprecated since TYPO3 14.3).Utility:: get Indp Env () TYPO3_contains whether the request comes through a configured reverse proxy (before it was always empty). See Expression language.PROXY - [!!!] Apply
allowedof the resourceFile Extensions uploadsettings to its operations. Before, an operation without its ownallowedusedFile Extensions $GLOBALS. Review the list when you rely on the previous behaviour. Configured extensions are compared case-insensitively.['TYPO3_ CONF_ VARS'] ['GFX'] ['imagefile_ ext'] - OpenAPI specification documents
403 Forbidden(instead of404 Not Found) for operations withsecurityorsecurity_, the same status as returned by the API.post_ denormalize - [!!!] A new file reference created by
uidrequiresLocal filereturned for the file by the API, otherwiseToken 400 Bad Requestis returned. The same applies to a new file of a property of typeFileor a class extending it ({"uid": 101, "file). The token is returned in the response of upload endpoints and of operations withToken": "..."} "fileinTokens"=true normalization(files offered for selection,Context file.for file references). Passfile Token filewhen saving a reference. Custom upload code has to grant tokens withToken File. See File token.Token Service:: grant () - Invalid values of file and file reference properties (e.g. a text or a boolean instead of an identifier or an object) return
400 Bad Requestinstead of HTTP 500 or clearing the property. - Files (classes extending Extbase's
File) nested in a response (e.g. members of a collection) are serialized like other objects, the same as in an item response, instead of the file reference output. - [!!!] Existing records of relations stored in the related table (TCA
inlinewithforeign_, TCAfield file) can be assigned or updated byuidonly when they already belong to the same property of the same record, otherwise400 Bad Requestis returned. New records are passed withoutuid. Fixes cascade update inPUTrequests (all relation types). A not existing record passed byuidreturns400 Bad Requestinstead of HTTP 500. See Relations stored in the related table. - Keep properties missing in the request body when an existing record is updated (
PATCH, cascade update of a related record). Newer versions of JMS serializer set the declared default value of such properties (e.g.protected string $title = ''), so all properties which were not sent were reset. - Fix response cache identifier for
identifierreturning an array (e.g.Expressions frontend.) - array items are part of the identifier now. Tag expressions returning an array add a tag per item. See Response cache.user. user Group Ids - [!!!] Validate origin and content type of requests changing data: requests from another origin not allowed by CORS
allowreturnOrigin 403 Forbidden, JSON body without JSONContent-returnsType 415 Unsupported Media Type. Add origins of frontend applications toallowand sendOrigin Content-. See Write requests from other origins.Type: application/ json - Fix response cache invalidation when the page cache is cleared from the backend (cache tags passed as a list were ignored, numeric tags caused errors).
- Log unexpected exceptions with an event ID. Outside of
Developmentcontext HTTP 500 response contains a generic message with this event ID instead of the exception message. See ThrowableSubscriber. - Return HTTP 500 for PHP errors (e.g.
Type) as API response with CORS headers instead of rethrowing them to TYPO3. [issue]Error - [!!!] Return
400 Bad Request(Source) instead of HTTP 500 for invalid client input: malformed JSON or non-object request body, invalid value of a relation, unknown order direction, missing coordinates of distance filter.Broker\ T3api\ Exception\ Bad Request Exception - [!!!] Validate language header (
X-): unknown language identifier returnsLocale 400 Bad Requestinstead of HTTP 500, non-numeric value returns400 Bad Requestinstead of default language. Disabled language is available only for backend users with access to it. See Multilanguage. - Refactor
Currenthandling. See current user assignment.Fe User - [!!!] CORS refactor: unify response handling, normalize configuration lists and improve preflight and cache behavior. Origin patterns now match complete origins. Review
allowconfiguration and customOrigin OPTIONSresponse handling when upgrading. See Cross-Origin Resource Sharing (CORS). - [!!!] Embed
goldspecdigital/library (PHP 8.5 compatibility). The package is no longer a dependency, namespaceoooas Goldis renamed toSpec Digital\ Object Oriented OAS Source. Update imports in custom filters implementingBroker\ T3api\ Open Api Openand custom collection response classes. [commit]Api Supporting Filter Interface - [!!!]
@T3api\returnsSerializer\ Type\ Password Hash nullon serialization instead of the stored password hash. Use@T3api\to return the hash as before, see PasswordHash. [commit]Serializer\ Type\ Password Hash (serialize=true) - [!!!] Refactor expression evaluation in access checkers. Protected method
Abstractis removed, useAccess Checker:: get Expression Language Resolver () evaluateinstead. [commit]Expression () - [!!!] Generate and validate slug fields according to TCA configuration on POST, PUT and PATCH operations. Slug values sent by the client are sanitized and made unique.
- Skip cHash validation for API query arguments (filters, pagination, ordering) when
cacheis enabled. [commit]Hash. enforce Validation - Validate pagination parameters like API Platform: invalid
page/itemsreturnsPer Page 400 Bad Request,itemsreturns onlyPer Page=0 hydra:, empty collection has one page intotal Items hydra:. See Pagination. [commit]view - Add
@idto related objects when their API resource class is set astypein YAML metadata. See Integration. [commit] - Add
versionandprovidestoPackages composer.(TYPO3 14.3 classic mode metadata).json - Return creation and modification date (TCA
ctrl.andcrdate ctrl.) stored by TYPO3 in response of POST, PUT and PATCH operations. Fixes HTTP 500 after creating record without creation date when getter does not allowtstamp null. - Rewrite generated serializer metadata only when it changes. Fixes random HTTP 500 (
include) on parallel requests in Development context.(... cache. php): Failed to open stream - Add TYPO3 14 support. [commit]
- Add PHP 8.5 support. [commit]
- Add tag-based response cache for GET endpoints. [commit]
- Clear API response cache when the frontend cache is flushed. [commit]
- Add query modifiers and ordered UIDs filter - return collections in externally resolved order. [commit]
- Allow API sites in backend Content Security Policy (OpenAPI view in backend module for multiple sites). [commit]
- Add TYPO3 v14 module icon, clean up backend module. [commit]
- Swagger UI in the backend module does not use the online validator of swagger.io.
- Refactor language support for TYPO3 12/13/14. [commit]
- Handle upload
conflictacross TYPO3 versions. [commit]Mode - Resolve current frontend user from Context instead of TSFE. [commit]
- Return empty string for empty or unresolvable typolinks. [commit]
- Resolve current site from
TYPO3_, do not throw on CLI. [commit]REQUEST - Skip t3api route enhancer when current site cannot be resolved. [commit]
- Use event request when enriching page cache identifier. [commit]
- Delegate to
Typo3Conditioninstead of extending it. [commit]Functions Provider - Add PHPStan 2 compatibility, rector, PHPUnit attributes. [commit]
- Documentation:
storagelimits only collection operations, item operations needPid security. See storage pages. - Documentation: real examples for TYPO3 14 testing instance, new pages for pagination, security, serialization, integration and file upload.
4.1.3
4.1.2
- Bring back support for random hash base in TYPO3 v12. [commit]
4.1.1
- Resolve caching issues on TYPO3 v13. [commit]
4.1.0
4.0.3
4.0.0
- Add TYPO3 13 support. [commit]
3.0.5
- Fix "array offset on null". [commit]
3.0.4
- Harden against undefined array key. [commit]
3.0.3
3.0.1
- Fix wrong usage of repository variable. [commit]
3.0.0
- [!!!] Changes signal slots into PSR-14 events [issue]
- Protect against "&cHash empty" error when
cacheis set toHash. enforce Validation true[issue] - Add testing instance for TYPO3 12, remove testing instance for TYPO3 10. Change PHP to 8.1 for testing instances.
- [!!!] Drop TYPO3 10, TYPO3 11 on dependencies. Update dependencies to TYPO3 12.
- Move changing language request set in header X-Locale to earlier stage, before "typo3/cms-frontend/tsfe". Add support for setting language of api request by standard language prefix instead of header X-Locale. [commit]
- Prevent FileReferenceHandler and ImageHandler from throwing error on problems with processing, missing file etc. [commit]
- Add crop support for ImageHandler [commit]
- Add essential meta information to the OpenAPI spec [commit]
- Do not convert empty string to absolute url [commit]
- Refactor link generation. Replace getTypoLink_URL with linkFactory. [commit]
- Add support for graceful exception handling for serialization process in TYPO3 [commit]
- Add optional @type attribute for resource. As this is rarely used, and can influence size of response, it must be activated by adding a subscriber to serializerSubscribers array. [commit]
2.0.3
- Extend dependency for symfony/cache to prevent t3api from downgrading symfony/cache in TYPO3 11 environments [commit]
2.0.2
2.0.1
2.0.0
- Move from travis to github actions [commit]
- Make php-cs-fixer config form TYPO3/coding-standards. Update .editorconfig from TYPO3/coding-standards [commit]
- Refactor ddev for test instances. [commit]
- Adds support for TYPO3 v11 [issue]
- Makes it possible to include custom paths as API resources [issue]
- Adds support for API resources inside subdirectories of
Classes/[issue]Domain/ Model/ - [!!!] Drops support for TYPO3 < 10.4
- [!!!] Changes annotation
ReadtoOnly Read[commit 1; commit 2]Only Property - [!!!] Changes signal slot
\Sourceparameters structure to indexed array instead of associative [commit]Broker\ T3api\ Serializer\ Context Builder\ Context Builder Interface:: SIGNAL_ CUSTOMIZE_ SERIALIZER_ CONTEXT_ ATTRIBUTES
1.2.3
1.2.2
- Fixes composer dependencies conflict regarding doctrine/cache [pull request; discussion]
- Unifies expression language context for all usages [84cb085; 85c2455]
- Differentiates cache for API resource according to site's and API base path [f54843c]
- Adds possibility to set different serializer context attributes for serialization and deserialization [bbf104d]
1.2.0
- Implements support for CORS configuration [pull request] [doc]
- Implements request processors and moves language handling into processor [2f9a75e]
- Base development version on DDEV
- Implements easy and safe way to assign current frontend user to records [56a38d7] [doc]
- Adds support for RTE on serialization [3c09f5]
- Adds support for password hashing on serialization [78dcbef]
- Fixes current site resolver
- Extends backend module by site selector [3389936]