X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=inline;f=doc%2Fafb-application-writing.html;h=9d051d5e4690c683aaeda4295c58fe17e6921f90;hb=c9bb1cec405741d5721dfcafb35b187c6f182a6f;hp=1f1fcc1ce9da34c44bee05a0881601ffc3e48fa2;hpb=17b196f1326d6b6c249d44b8744d73d7bba12d7a;p=src%2Fapp-framework-binder.git diff --git a/doc/afb-application-writing.html b/doc/afb-application-writing.html index 1f1fcc1c..9d051d5e 100644 --- a/doc/afb-application-writing.html +++ b/doc/afb-application-writing.html @@ -8,36 +8,54 @@
version: 1
-Date: 09 juin 2016
-Author: José Bollo
Developers of HTML5 applications (client side) can easily create applications for AGL framework using their preferred HTML5 framework.
@@ -187,7 +202,7 @@ ON-REPLY 1:auth/check: {"jtype":"afb-reply","request&quThis object contains at least 2 mandatory fields of name jtype and request and one optional field of name response.
This is a template of replies:
-{
+{
"jtype": "afb-reply",
"request": {
"status": "success",
@@ -197,7 +212,7 @@ ON-REPLY 1:auth/check: {"jtype":"afb-reply","request&qu
"reqid": "application-generated-id-23456"
},
"response": ....any response object....
-}
+}
Field jtype
The field jtype must have a value of type string equal to "afb-reply".
Field request
@@ -219,11 +234,11 @@ ON-REPLY 1:auth/check: {"jtype":"afb-reply","request&qu
This object contains at least 2 mandatory fields of name jtype and event and one optional field of name data.
Template
Here is a template of event:
-{
+{
"jtype": "afb-event",
"event": "sample_api_name/sample_event_name",
"data": ...any event data...
-}
+}
Field jtype
The field jtype must have a value of type string equal to "afb-event".
Field event