Is a "theme extension" necessary, when only used via JSONAPI and Vue?

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!
rowild

Is a "theme extension" necessary, when only used via JSONAPI and Vue?

Post by rowild » 09 Dec 2022, 18:39

Hi,

this is a rather general question: If I decide to use TYPO3 in a "headless" manner and connect to it only via JSONAPI, is there any scenario, where I actually need what I think is called a theme extension?

The site is very simple: only 1 user, who sells his music scores. A customer management will be necessary, but I think that does not require a theme extension, right? Or am I missing out on something?

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

Re: Is a "theme extension" necessary, when only used via JSONAPI and Vue?

Post by aimeos » 11 Dec 2022, 10:44

No, you don't need any Aimeos theme extension if you build your own PWA.
The theme extensions are only for HTML based frontends.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rowild

Re: Is a "theme extension" necessary, when only used via JSONAPI and Vue?

Post by rowild » 03 Jan 2023, 17:18

Thank you very much for your answer! And please apologize for my late response!

A follow-up question: How can I use TYPO3's headless extension alongside Aimeos' json features? It seems that headless predominates the RestAPI calls, when the template is included in the Start page. So I changed my page tree to this structure:

START <-- includes only "page = PAGE" and "page.typeNum = 0"
Content <-- includes headless typoscript
[pages]
Shop <-- includes aimeos typoscript
[shop pages]
jsonapi

The call to Aimeos' `jsonapi` should be
curl -X OPTIONS 'https://jvds.ddev.site/jsonapi'

But that only returns
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to jvds.ddev.site:443

What am I doing wrong?
TYPO3 11.5, ddev, php 8.1

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

Re: Is a "theme extension" necessary, when only used via JSONAPI and Vue?

Post by aimeos » 04 Jan 2023, 12:48

Guess, your DDEV setup doesn't support HTTPS. Did you try HTTP instead?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rowild

Re: Is a "theme extension" necessary, when only used via JSONAPI and Vue?

Post by rowild » 04 Jan 2023, 17:56

The headless ext returns valid data... Working with "normal" typo3 fe works fine, too.

"curl" calling only http returns a "not found"
log-in on a ddev TYPO3 without https does not work (login does not redirect; manually calling /typo3 redirects to https, even though there is a separate domain with http...)

Also tried colima, but there the same problem occurs...

Post Reply