http://codereview.appspot.com/174057/diff/1/3
File Core-Data.xml (right):
http://codereview.appspot.com/174057/diff/1/3#newcode286
Core-Data.xml:286: </section>
In general I have tried to alphabetize the sections and parameters in
the section. That would need to be done.
http://codereview.appspot.com/174057/diff/1/3#newcode296
Core-Data.xml:296: <c>params</c>
params did not exist in v0.9 docs, "body", which seems like params was
in examples, but not in the official params for the methods.
http://codereview.appspot.com/174057/diff/1/2
File Core-Gadget.xml (right):
http://codereview.appspot.com/174057/diff/1/2#newcode2317
Core-Gadget.xml:2317: <t>The services available on the client are
determined by the server from
This paragraph and example should go under the new section
"osapi.<service-name>", see comments below.
http://codereview.appspot.com/174057/diff/1/2#newcode2333
Core-Gadget.xml:2333: <section title="Service Requests">
Note: There seem to be 3 major objects: Request (a base class), derived
classes "osapi.<service-request>" and BatchRequest. The comments below
are intended to get that across.
http://codereview.appspot.com/174057/diff/1/2#newcode2342
Core-Gadget.xml:2342: <t
hangText="Signature">osapi.<service-name>.<method-name>.execute(callback)</t>
I believe this signature would simply be
"osapi.Request.execute(callback)". The service and method would be used
to create one of these.
OR
You are missing the (params) argument after <method-name>
http://codereview.appspot.com/174057/diff/1/2#newcode2351
Core-Gadget.xml:2351: <c>A callback function to handle the response. The
callback function will be invoked with a parameter which contains the
payload specified by the service method that is invoked.</c>
will be invoked with a parameter which contains the >>response<< payload
specified...
http://codereview.appspot.com/174057/diff/1/2#newcode2370
Core-Gadget.xml:2370: </section>
Add a new section:
12.14.1.X osapi.<service-name>
Services are made available through specific the osapi.Request objects.
The <service-name> is dependent upon the application, for example Social
appliations they are: people, activities, appdata, etc...
-- add in here the text about testing for the service (last part of
12.14) --
12.14.1.X.1 osapi.<service-name>.<method-name>
Signature
<static> Type: { osapi.Request }
osapi.<service-name>.<method-name>(params)
Description
Builds a request to retreive information from the server. This
request may be executed immediatly by the osapi.Request.execute(), or by
batching them using osapi.BatchRequest. The params are specific to the
type of service and are documented with the specific services.
http://codereview.appspot.com/174057/diff/1/2#newcode2437
Core-Gadget.xml:2437: <c>A callback function to handle the response. The
callback function will be invoked with a parameter which contains the
payload specified by the service method that is invoked.</c>
will be invoked with a parameter which contains a map. The key is the
"key" specified in the add method. The value is the response payload for
the service.
http://codereview.appspot.com/174057/diff/1/2#newcode2548
Core-Gadget.xml:2548: is not a JSON-RPC endpoint, but a third party web
service.</t>
Add: The object created is an osapi.Request object, suitable for
immediate execution with osapi.Request.execute() or batch operations
with osapi.BatchRequest.
http://codereview.appspot.com/174057/diff/1/2#newcode2707
Core-Gadget.xml:2707: 'body': {'numResults': 100, theme: 'beach'},
body is not part of HTTP-Request-Params
http://codereview.appspot.com/174057/diff/1/2#newcode2723
Core-Gadget.xml:2723: <t>Tags that invoke API Server methods a 1:1
mapping between the XML
Tags that invoke API Server methods >>support<< a 1:1
http://codereview.appspot.com/174057/diff/1/2#newcode2772
Core-Gadget.xml:2772: <t hangText="Returns">A JSON object representing
the <eref target="Core-Data.xml#Return-Object">Return-Object</eref>
specified by the service method.</t>
Missing the definition of Return-Object
http://codereview.appspot.com/174057