github.com/vcilabs/webrpc@v0.5.2-0.20201116131534-162e27b1b33b/_examples/hello-webrpc/hello-api.ridl (about)

     1  webrpc = v1
     2  
     3  name = hello-webrpc
     4  version = v1.0.0
     5  
     6  enum Kind: uint32
     7    - USER = 1
     8    - ADMIN = 2
     9  
    10  message Empty
    11  
    12  message User
    13    - ID: uint64
    14      + json = id
    15      + go.tag.db = id
    16  
    17    - username: string
    18      + json = USERNAME
    19      + go.tag.db = username
    20  
    21    - createdAt?: timestamp
    22      + json = created_at,omitempty
    23      + go.tag.db = created_at
    24  
    25  
    26  service ExampleService
    27    - Ping() => (status: bool)
    28    - GetUser(userID: uint64) => (user: User)