Skip to content

Commit

Permalink
cosmetic, errors should be defined before services
Browse files Browse the repository at this point in the history
  • Loading branch information
pkieltyka committed Jul 14, 2023
1 parent 199cc32 commit feb0a66
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _examples/golang-basics/example.ridl
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ struct ComplexType
- user: User


error 1000 UserNotFound "user not found" HTTP 404


service ExampleService
- Ping()
- Status() => (status: bool)
- Version() => (version: Version)
- GetUser(header: map<string,string>, userID: uint64) => (code: uint32, user: User)
- FindUser(s: SearchFilter) => (name: string, user: User)

error 1000 UserNotFound "user not found" HTTP 404

0 comments on commit feb0a66

Please sign in to comment.