1
- webrpc = v1 # version of webrpc schema format (ridl or json)
1
+ webrpc = v1 # version of webrpc schema format (ridl or json)
2
2
3
- name = example # name of your backend app
4
- version = v0.0.1 # version of your schema
5
-
3
+ name = example # name of your backend app
4
+ version = v0.0.1 # version of your schema
6
5
7
6
enum Kind: uint32
8
7
- USER
@@ -56,43 +55,41 @@ struct ComplexType
56
55
- mapOfUsers: map<string,User>
57
56
- user: User
58
57
59
-
60
- error 1000 UserNotFound "User not found" HTTP 404
61
- error 2000 Unauthorized "Unauthorized access" HTTP 401
62
- error 3000 PermissionDenied "Permission denied" HTTP 403
63
-
58
+ error 1000 UserNotFound "User not found" HTTP 404
59
+ error 2000 Unauthorized "Unauthorized access" HTTP 401
60
+ error 3000 PermissionDenied "Permission denied" HTTP 403
64
61
65
62
service ExampleService
66
- @internal
63
+ @internal
67
64
- Ping()
68
- @internal
65
+ @internal
69
66
- Status() => (status: bool)
70
- @internal
67
+ @internal
71
68
- Version() => (version: Version)
72
- @deprecated:GetUserV2
73
- @internal
69
+ @deprecated:GetUserV2
70
+ @internal
74
71
- GetUser(header: map<string,string>, userID: uint64) => (code: uint32, user: User)
75
- @public
76
- @auth:"X-Access-Key,S2S,Cookies"
72
+ @public
73
+ @auth:"X-Access-Key,S2S,Cookies"
77
74
- GetUserV2(header: map<string,string>, userID: uint64) => (code: uint32, user: User, profile: string)
78
- @public
75
+ @public
79
76
- FindUser(s: SearchFilter) => (name: string, user: User)
80
- @public
77
+ @public
81
78
- GetIntents() => (intents: []Intent)
82
- @public
79
+ @public
83
80
- CountIntents(userId: uint64) => (count: map<Intent,uint32>)
84
81
85
82
service ExampleServiceV2
86
83
- Ping()
87
84
- Status() => (status: bool)
88
85
89
86
service AdminService
90
- @public
91
- @deprecated:Auth
87
+ @public
88
+ @deprecated:Auth
92
89
- AuthOld() => (jwt: string)
93
- @public
90
+ @public
94
91
- Auth() => (jwt: string, role: string)
95
- @internal
92
+ @internal
96
93
- Status() => (status: bool)
97
- @internal
98
- - Version() => (version: Version)
94
+ @internal
95
+ - Version() => (version: Version)
0 commit comments