JSON-API Typo3 v12

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
heural
Posts: 64
Joined: 09 Jun 2022, 07:55

JSON-API Typo3 v12

Post by heural » 08 Feb 2024, 13:24

Hi Aimeos-Team,

the json-Api Enpoint does not work after update Aimeos-Dist to 23.10.3 and Typo3 v12.4.10, BP 14.0.7

1/1) #1257246929 TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException
Tried resolving a template file for controller action "Default->Default" in format ".html", but none of the paths contained the expected template file (Default/Default.html). The following paths were checked: /var/www/html/vendor/bk2k/bootstrap-package/Resources/Private/Templates/ContentElements/

Thank you!

User avatar
aimeos
Administrator
Posts: 8318
Joined: 01 Jan 1970, 00:00

Re: JSON-API Typo3 v12

Post by aimeos » 14 Feb 2024, 09:31

Finally found the problem: The "Setup" TypoScript in the page for /jsonapi doesn't work as expected any more. Please replace it completely with these lines:

Code: Select all

page = PAGE
page {
    typeNum = 0
    headerData >
    config {
        additionalHeaders.10.header = Content-type:application/json
        disableAllHeaderCode = 1
        disableCharsetHeader = 1
        disablePrefixComment = 1
    }
    10 = CONTENT
    10 {
        table = tt_content
        select.orderBy = sorting
        select.languageField = sys_language_uid
        renderObj =< tt_content
        renderObj {
            list.templateRootPaths.5 = EXT:aimeos/Resources/Private/Templates/Fluid
        }
    }
}
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

heural
Posts: 64
Joined: 09 Jun 2022, 07:55

Re: JSON-API Typo3 v12

Post by heural » 26 Feb 2024, 08:16

Thank you, it works!

Post Reply