Changes for page ERRest In Depth

Last modified by Pascal Robert on 2012/06/10 16:01

From version 41.1
edited by Pascal Robert
on 2012/06/10 15:08
Change comment: There is no comment for this version
To version 40.1
edited by Pascal Robert
on 2012/05/02 21:50
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,59 +57,3 @@
1 -General architecture
2 -Same Origin policy
3 -Transactions
4 -HTML vs other formats
5 -Response representation
6 -Missing route
7 -Missing object
8 -POJO objects
9 -Headers
10 -Caching
11 -Adding new format
12 -Security
13 -strictMode
14 -Workflow
15 -Query arguments and RXRestFetchSpecification
16 -ERXRestNameRegistry
17 -MapClassDescription / NSDictionaryClassDescription
18 -
19 -Calling an action goes like this:
20 -
21 -{{code}}
22 -
23 -Application.dispatchRequest ->
24 -ERXRouteRequestHandler.handleRequest ->
25 -ERXRouteRequestHandler._handleRequest ->
26 -RestEntitiesController(ERXRouteController).performActionNamed ->
27 -RestEntitiesController(ERXRouteController).performRouteActionNamed -> RestEntitiesController(ERXRouteController).performActionWithArguments(Method, Object...) ->
28 -Method.invoke -> ...
29 -RestEntitiesController.indexAction()
30 -
31 -{{/code}}
32 -
33 -ERXRestUtils
34 -
35 -request > route
36 -
37 -{{code}}
38 -
39 -/**
40 - * A NameFormat that behaves like Rails -- plural entities, plural routes, lowercase underscore names
41 - * (names_like_this).
42 - */
43 - public static NameFormat RAILS = new NameFormat(true, true, NameFormat.Case.LowercaseUnderscore);
44 -
45 - /**
46 - * A NameFormat that behaves like WO -- singular entities, singular routes, camel names (NamesLikeThis).
47 - */
48 - public static NameFormat WO = new NameFormat(false, false, NameFormat.Case.CamelCase);
49 -
50 - /**
51 - * A NameFormat that behaves like WO -- singular entities, singular routes, lowercase camel names (namesLikeThis).
52 - */
53 - public static NameFormat WO_LOWER = new NameFormat(false, false, NameFormat.Case.LowerCamelCase);
54 -
55 -{{/code}}
56 -
57 57  * ERXRestContext
58 58  ** contains the editing context and an userInfo dictionnary
59 59  ** will be populated with er.rest.dateFormat, er.rest.timestampFormatter and er.rest.timestampFormat (read only for non-HTML responses)
... ... @@ -102,7 +102,6 @@
102 102  ** er.rest.timestampFormat.secondary
103 103  ** er.rest.timestampFormatter
104 104  ** er.rest.rfcDateFormat
105 -** er.rest.jodaTime
106 106  ** ERXRest.transactionsEnabled (default 'false') ERXRestTransactionRequestAdaptor
107 107  ** ERXRest.maxEventsPerTransaction (default '50') ERXRestTransactionRequestAdaptor
108 108  ** ERXRest.accessControlAllowRequestHeaders (ERXRouteController)
... ... @@ -113,7 +113,7 @@
113 113  ** ERXRest.accessControlMaxAge (ERXRouteController)
114 114  *** (default 1728000) This header indicates how long the results of a preflight request can be cached. For an example of a preflight request, see the above examples.
115 115  ** ERXRest.accessControlAllowOrigin (ERXRouteController)
116 -*** Set the value to '**' to enable all origins. See [[https://developer.mozilla.org/En/HTTP_access_control#Access-Control-Allow-Origin]]**
59 +*** Set the value to '**' to enable all origins. See https:~/~/developer.mozilla.org/En/HTTP_access_control#Access-Control-Allow-Origin**
117 117  * JSON Schema
118 118  ** {{code}}
119 119  /something?schema=true
... ... @@ -127,6 +127,31 @@
127 127  }
128 128  {{/code}}
129 129  
73 +Same Origin policy
74 +Transactions
75 +HTML vs other formats
76 +Response representation
77 +Missing route
78 +Missing object
79 +POJO objects
80 +Headers
81 +Caching
82 +Adding new format
83 +Security
84 +strictMode
85 +Workflow
86 +Query arguments and RXRestFetchSpecification
87 +ERXRestNameRegistry
88 +MapClassDescription / NSDictionaryClassDescription
89 +
90 +ERXRestUtils
91 +Properties
92 +er.rest.dateFormat
93 +er.rest.timestampFormat
94 +er.rest.rfcDateFormat
95 +
96 +request > route
97 +
130 130  Application(ERXApplication).dispatchRequest(WORequest) line: 2051
131 131  ERXRouteRequestHandler(WOActionRequestHandler).//handleRequest(WORequest) line: 221
132 132  ERXRouteRequestHandler.getRequestHandlerPathForRequest(WORequest) line: 782//
... ... @@ -158,3 +158,13 @@
158 158  | ERXRest.strictMode | ERXRest.strictMode
159 159  \\          |
160 160  ERXRouteController
129 +
130 +Properties
131 +
132 +ERXRest.accessControlAllowRequestHeaders
133 +ERXRest.accessControlAllowRequestMethods
134 +ERXRest.defaultFormat
135 +ERXRest.strictMode
136 +ERXRest.allowWindowNameCrossDomainTransport
137 +ERXRest.accessControlMaxAge
138 +ERXRest.accessControlAllowOrigin