X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=doc%2Fafb-application-writing.html;h=9d051d5e4690c683aaeda4295c58fe17e6921f90;hb=c9bb1cec405741d5721dfcafb35b187c6f182a6f;hp=ad1911df7baad72d321c975b1d171f6cefbf310a;hpb=7059e59cddc1c81321639875636e88895bc14309;p=src%2Fapp-framework-binder.git diff --git a/doc/afb-application-writing.html b/doc/afb-application-writing.html index ad1911df..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