1- webrpc = v1 # version of webrpc schema format (ridl or json)
1+ webrpc = v1 # version of webrpc schema format (ridl or json)
22
3- name = example # name of your backend app
4- version = v0.0.1 # version of your schema
3+ name = example # name of your backend app
4+ version = v0.0.1 # version of your schema
55
66enum Kind: uint32
77 - USER
@@ -45,35 +45,37 @@ struct Optional
4545 - email?: string
4646
4747service ExampleService
48- @deprecated
48+ @deprecated
4949 - Ping()
50-
51- @deprecated:"Use GetUserV2 instead."
52- @auth:JWT
50+
51+ @deprecated:"Use GetUserV2 instead."
52+ @auth:JWT
5353 - GetUser(header: map<string,string>, userID: uint64) => (code: uint32, user: User)
54-
55- # GetUserV2 returns user based on given userID.
56- #
57- # Replaces GetUser endpoint.
58- @auth:JWT
54+
55+ # GetUserV2 returns user based on given userID.
56+ # Replaces GetUser endpoint.
57+ @auth:JWT
5958 - GetUserV2(header: map<string,string>, userID: uint64) => (code: uint32, user: User, profilePicture: string)
6059
61- # FindUser searches for a user using the given search filter.
62- #
63- # The filters are q (string) and active (bool).
64- @auth:JWT
60+ # FindUser searches for a user using the given search filter.
61+ #
62+ # The filters are q (string) and active (bool).
63+ #
64+ # The minimal length of the "q" filter is 3 characters.
65+ @auth:JWT
6566 - FindUser(s: SearchFilter) => (name: string, user: User)
6667
67- # ListUsers returns all users.
68- @auth:JWT
68+ # ListUsers returns all users.
69+ @auth:JWT
6970 - ListUsers() => (users: []User)
7071
71- - GetComplex() => (complex: ComplexType)
72+ - GetComplex() => (complex: ComplexType)
7273 - GetAllOptional() => (optional: Optional)
7374
7475service AdminService
75- @auth:JWT
76+ @auth:JWT
7677 - ListUsers() => (users: []User)
7778
78- error 100 RateLimited "too many requests" HTTP 429
79- error 101 DatabaseDown "service outage" HTTP 503
79+ error 100 RateLimited "too many requests" HTTP 429
80+ error 101 DatabaseDown "service outage" HTTP 503
81+
0 commit comments