... generate_api
authornk
Fri, 22 Feb 2019 12:59:32 +0100
branchgenerate_api
changeset 3311cdfdb6831046
parent 3310 ee149b1aaa8e
parent 3304 3254e201f3c0
child 3327 e423895a97fa
...
api/message_api.yml2
     1.1 --- a/api/basic_api.yml2	Fri Feb 22 12:49:13 2019 +0100
     1.2 +++ b/api/basic_api.yml2	Fri Feb 22 12:59:32 2019 +0100
     1.3 @@ -4,21 +4,23 @@
     1.4  // this file is under GNU General Public License 3.0
     1.5  // see LICENSE.txt
     1.6  
     1.7 -// written by Volker Birk
     1.8 +// written by Nana Karlstetter and Volker Birk
     1.9  
    1.10  
    1.11 -type ISO639_1 extends string size=2 > a-z
    1.12 +type ISO639_1 is string size=2 > a-z
    1.13  
    1.14 -type hex extends string > a-f0-9
    1.15 +type hex is string > a-f0-9
    1.16  
    1.17  type hash doc="32bit Key ID to SHA512 in hex"
    1.18 -    extends hex min=16, max=128;
    1.19 +    is hex min=16, max=128;
    1.20  
    1.21  type hash_list doc="sequence of fingerprints of keys"
    1.22 -    extends list< hash >;
    1.23 +    is list< hash >;
    1.24  
    1.25  type TID doc="UUID version 4 variant 1"
    1.26 -    extends binary size=16;
    1.27 +    is binary size=16;
    1.28 +
    1.29 +type blob_list is list < blob >;
    1.30  
    1.31  
    1.32  enum comm_type {
     2.1 --- a/api/pEp.yml2	Fri Feb 22 12:49:13 2019 +0100
     2.2 +++ b/api/pEp.yml2	Fri Feb 22 12:59:32 2019 +0100
     2.3 @@ -38,6 +38,16 @@
     2.4  decl throws @except;
     2.5  decl caveat(mode=caveat) alias doc;
     2.6  
     2.7 +// base types
     2.8 +
     2.9 +// string:  text
    2.10 +// int:     integer number
    2.11 +// blob:    Binary Large Object
    2.12 +
    2.13 +// collections
    2.14 +
    2.15 +// list:    one or more elements, which have a sequence
    2.16 +// set:     one or more elements, which do not have a sequence
    2.17  
    2.18  package pEp {
    2.19      api transport include ./transport_api.yml2