Deploy REST with Extbase (Typo3)

I am looking for a way to implement REST-Service in extbase extension for Typo3 . I just found old or unsupported extensions and they do not use extbase .

So, how can I get an extension that provides an API for external requests? Sort of:

 GET www.somedoma.in/service/item/1 

I found this tutorial for Typo3 Flow . So how could I use Flow packages in extbase?

I also found a way to define my own page types, such as ?type=23123145 , where you can control the response. But I think there is no good idea for implementing a REST-Service extension .

+4
source share
3 answers

I started creating an extension because I was interested in this topic. The current status can be found at https://github.com/cundd/rest . To do this, install cundd_composer and do the work; -)

Update 1: Announcement: ;-) The extension is used in production and continues to evolve. To name some of the features: - Extbase support - Table mapping - Authentication

Update 2: The project website is live: http://rest.cundd.net

+3
source

You cannot use FLOW3 packages in TYPO3.

AFAIK, TYPO3 does not yet have REST support, and it can be difficult to use RESTful methods like PUT or DELETE. However, you can use the usual Extbase ext and RealURL to create an API that can send responses for GET or POST requests.

BTW, if the only goal of your implementation is to create a RESTful API, I would suggest using a small framework on top of it. The main goal of TYPO3 is to provide a universal and convenient CMS system, but its performance can sometimes not be compared with dedicated solutions.

+2
source

I can recommend the symfony 2 serializer component! I use it as a standalone version as lib. Here is a tutorial

0
source

Source: https://habr.com/ru/post/1447191/


All Articles