[FLOW3-general] Versionable Webservice + DTO
Robert Lemke
robert at typo3.org
Mon Jan 16 18:18:49 CET 2012
Hi Dominique,
On 09.01.2012, at 21:04, Dominique Feyer wrote:
> I read some month ago about a project based on FLOW3 who use DTO (Data Transfer Object) to have a separation between the Domain Model and the Webservice API, but I can't found more information about the implementation.
>
> The goal of my project it to propose different version of a webservice, for backward compatibility. So I need to version my REST URI, having a sort of DTO for the communication (JSON) and a way to convert those DTO to Domain Model Object in FLOW3.
>
> I'm a the begining of the design of this application, so any idea, help, blog post … are really welcome.
I've been involved in a project of Christopher where we used versioned services. We just created some PHP namespace with a version number for – in that case – the actual SOAP service. Within the Service namespace we used DTOs to decouple the service from the domain models.
Maybe this snapshot from the directory structure gives you some more hints:
https://skitch.com/robertlemke/g3rtr/service-structure
Cheers,
Robert
--
Robert Lemke – Fluent Code Artisan
http://robertlemke.de/blog
Lead Developer TYPO3 Phoenix and FLOW3
Co-Founder TYPO3 Association
Get involved: typo3.org – flow3.org
More information about the FLOW3-general
mailing list