Changes for page ERRest In Depth
Last modified by Pascal Robert on 2012/06/10 16:01
From version 37.1
edited by Pascal Robert
on 2012/05/02 20:06
on 2012/05/02 20:06
Change comment:
There is no comment for this version
To version 43.1
edited by Pascal Robert
on 2012/05/02 21:09
on 2012/05/02 21:09
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -18,13 +18,17 @@ 18 18 ** you just need to override createRestContext() in your controller if you want to add other stuff to the context (a user, etc.) 19 19 * Properties 20 20 ** ERXRest.idKey (ERXRestFormatDelegate) 21 -*** (default "id") Override this property if you want to use a different key for the 'id' attribute ERXRest.typeKey 21 +*** (default "id") Override this property if you want to use a different key for the 'id' attribute** ERXRest.typeKey** 22 22 ** ERXRest.nilKey (ERXRestFormatDelegate) 23 23 ** ERXRest.writeNilKey (ERXRestFormatDelegate) 24 24 ** ERXRest.pluralEntityNames (ERXRestFormatDelegate) 25 25 ** ERXRest.writeTypeKey (ERXRestFormatDelegate) 26 -** ERXRest.suppressTypeAttributesForSimpleTypes 26 +** ERXRest.suppressTypeAttributesForSimpleTypes (ERXXmlRestWriter) 27 +*** (default "false") If set to true, primitive types, like type = "datetime", won't be added to the output 27 27 ** ERXRest.strictMode 29 +*** In ERXMissingRouteController: (default "true") If set to true, status code in the response will be 405 Not Allowed, if set to false, status code will be 404 Not Found 30 +*** In ERXRouteController: (default "true") If set to true, status code in the response will be 405 Not Allowed, if set to false, status code will be 404 Not Found 31 +*** ERXRouteResults: (default "true") If set to true, creating a ressource will return status code 201 Created, if set to false, will return 200 OK 28 28 ** ERXRest.pluralEntityNames (ERXRouteRequestHandler) 29 29 ** ERXRest.routeCase (ERXRouteRequestHandler) 30 30 ** ERXRest.lowercaseEntityNames (ERXRouteRequestHandler)