Feature #37402

Make request handling RESTfuller

Added by Bastian Waidelich over 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
Http
Start date:
2012-05-22
Due date:
% Done:

70%

Estimated time:
PHP Version:
5.3
Has patch:
No
Complexity:
medium

Description

Currently quite some work is required in order to create a FLOW3 based REST service. See comments: https://github.com/bwaidelich/REST-Test/commit/08749c0304d0f917781ca29f558dbb83f610fb57

Those features should be part of the core IMO:

format negotiation:

We used to have a convenience method Environment:getAcceptedFormats() that determined the accepted format from the requests accept headers. The http request should be able to determine those itself.
Note: It would be nice if the request had a list of accepted formats so the controller could specify a list of supported formats and the first match would be used.

consume input streams (see #36913)

Streams should be converted to arguments for POST & PUT requests.
Based on the content type the stream needs to be parsed (see https://github.com/bwaidelich/REST-Test/blob/master/Classes/RestRequestHandler.php#L119)

improve provided RestController

The RestController should be able to set the Content-Type header of the response according to some pattern (see https://github.com/bwaidelich/REST-Test/blob/master/Classes/Controller/AbstractRestController.php#L40)
Also redirection and error handling need to be adjusted

I don't know what we could achieve for 1.1 still, but maybe we can at least make it easier for 3rd parties to hook in


Related issues

Related to TYPO3.Flow - Task #36340: Environment class needs to be cleaned upResolvedKarsten Dambekalns2012-04-19

Actions
Related to TYPO3.Flow - Feature #35243: HTTP 1.1 Support – FoundationsResolvedRobert Lemke2012-03-26

Actions
Related to TYPO3.Flow - Bug #36913: HTTP PUT data not regonized as arguments ResolvedRobert Lemke2012-05-07

Actions
Related to TYPO3.Flow - Bug #37403: IdentityRoutePart should set __identity arrayResolvedBastian Waidelich2012-05-22

Actions
Related to TYPO3.Flow - Feature #37604: Make Flow RestController useless by improving MVC stackResolvedBastian Waidelich2012-05-30

Actions
#1

Updated by Robert Lemke over 8 years ago

  • Tracker changed from Task to Feature
  • Category changed from MVC to Http
  • Status changed from New to Accepted
  • PHP Version set to 5.3
  • Complexity set to medium
#2

Updated by Karsten Dambekalns over 8 years ago

  • % Done changed from 0 to 70
#3

Updated by Karsten Dambekalns over 8 years ago

  • Status changed from Accepted to Resolved

Almost done, the remaining work will be done for 1.2, see #37604.

#4

Updated by Bastian Waidelich almost 8 years ago

Moved comments to #37604

Also available in: Atom PDF