-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the API design to expand the message body arguments in the AP…
…I functions (#38) * Changed function signature to expand the body * Moved post data creation and asserts * Split realtime and rest api Generate realtime api from protobuf definition * Socket event handler improvements * Client cleanup * Updated codegen scripts * Updated websocket dependency * Updated generated code * Updated example * Doc fix * Socket review fixes * Sort expanded body args * Added missing socket events * Cleaned up realtime api code gen a bit more * Added missing event * Fix formatting of socket template * Updated list of available listeners * Update CHANGELOG.md
- Loading branch information
Showing
11 changed files
with
2,529 additions
and
3,280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
Generates Lua code from the Nakama swagger definition in the main Nakama repository. | ||
Generates Lua code from the Nakama swagger definition in the main Nakama repository and the Nakama RealTime protobuf definition in the Nakama-Common repository. | ||
|
||
## Usage | ||
|
||
Generate the REST API: | ||
|
||
```shell | ||
go run rest.go /path/to/nakama/apigrpc/apigrpc.swagger.json > ../nakama/nakama.lua | ||
``` | ||
|
||
Generate the RealTime API: | ||
|
||
```shell | ||
go run main.go /path/to/main/repo/nakama/apigrpc/apigrpc.swagger.json > ../nakama/nakama.lua | ||
python realtime.py /path/to/nakama-common/rtapi/realtime.proto > ../nakama/socket.lua | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
go run rest.go ../../nakama/apigrpc/apigrpc.swagger.json > ../nakama/nakama.lua | ||
python realtime.py ../../nakama-common/ ../nakama/socket.lua |
Oops, something went wrong.