-
Notifications
You must be signed in to change notification settings - Fork 60
how_to_write_new_contract
'''1. The new WADL contract'''
The latest specification of WADL permits to include a <doc></doc> child to any element. This is particularly interesting for us since it makes the use of two different files to describe the observers (the contract) unnecessary. Consequently, contract between an observer and UniCORN has been simplified to use just one WADL file including informations of the RDF file (To learn more see WADL specification).
This document explains how to write the new contract (with required nodes) which is comprehensible by UniCORN.
'''2. Metadata in node'''
We use <doc></doc> node to write metadata.BR A standard <doc></doc> node has to be written like this : BR You can give informations in different languages. For that, you have to use attribute :
Some information are required :
- : name of the observer.
- : description of the observer.
- : url where we can found documentation about the observer.
- : mimetype tolerated by the observer.
- : provider of the contract.
- : name of the lang parameter if exists. The lang parameter permits to the observer to know in which language user wants tu receive response
- : reference of the observer.
'''3. Add a method'''
Inside node, two <doc}}} value="&quot;myValue&quot;&gt;&lt;/option&gt;. Example"></doc}}}>
Use an extra layer of security with two factor authentication (2FA) when logging into google