From 99fb10ecca6b1679c1fe402508216c0f82140ef5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Fri, 16 Sep 2016 18:47:57 +0200 Subject: [PATCH] Improvement of the documentation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I8f220d7508d939a16eba956ab1fdf975f4048332 Signed-off-by: José Bollo --- doc/FAQ.html | 4 +- doc/afb-application-writing.html | 56 +++-- doc/afb-bindings-overview.html | 4 +- doc/afb-bindings-writing.html | 176 ++++++++------- doc/afb-daemon-vocabulary.html | 4 +- doc/afb-events-guide.html | 279 ++++++++++++++++++++++++ doc/afb-events-guide.md | 449 +++++++++++++++++++++++++++++++++++++++ doc/afb-overview.html | 4 +- doc/afb-tests-overview.html | 4 +- doc/doc.css | 3 + 10 files changed, 879 insertions(+), 104 deletions(-) create mode 100644 doc/afb-events-guide.html create mode 100644 doc/afb-events-guide.md diff --git a/doc/FAQ.html b/doc/FAQ.html index 5cc8b653..f3584e0e 100644 --- a/doc/FAQ.html +++ b/doc/FAQ.html @@ -7,10 +7,10 @@ Frequently Asked Question about AFB-DAEMON + -
diff --git a/doc/afb-application-writing.html b/doc/afb-application-writing.html index 12a2f13f..9d051d5e 100644 --- a/doc/afb-application-writing.html +++ b/doc/afb-application-writing.html @@ -8,29 +8,47 @@ HOWTO WRITE an APPLICATION above AGL FRAMEWORK - +
@@ -184,7 +202,7 @@ ON-REPLY 1:auth/check: {"jtype":"afb-reply","request&qu

This object contains at least 2 mandatory fields of name jtype and request and one optional field of name response.

Template

This is a template of replies:

-
{
+
{
    "jtype": "afb-reply",
    "request": {
       "status": "success",
@@ -194,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

@@ -216,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

diff --git a/doc/afb-bindings-overview.html b/doc/afb-bindings-overview.html index b650860c..0ffc769a 100644 --- a/doc/afb-bindings-overview.html +++ b/doc/afb-bindings-overview.html @@ -7,10 +7,10 @@ Overview of bindings shipped with AFB-Daemon + -
diff --git a/doc/afb-bindings-writing.html b/doc/afb-bindings-writing.html index b32912b6..ea03801f 100644 --- a/doc/afb-bindings-writing.html +++ b/doc/afb-bindings-writing.html @@ -7,35 +7,53 @@ HOWTO WRITE a BINDING for AFB-DAEMON - +

HOWTO WRITE a BINDING for AFB-DAEMON

José Bollo

-

24 juin 2016

+

27 juillet 2016