-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from Etherna/improve/BNET-78-bee-1.18.2-support
Improve/bnet 78 bee 1.18.2 support
- Loading branch information
Showing
9 changed files
with
1,781 additions
and
3,340 deletions.
There are no files selected for viewing
2,008 changes: 654 additions & 1,354 deletions
2,008
src/BeeNet/Clients/DebugApi/v5_0_0/BeeDebugClient_5_0_0.cs
Large diffs are not rendered by default.
Oops, something went wrong.
2,740 changes: 902 additions & 1,838 deletions
2,740
src/BeeNet/Clients/GatewayApi/v5_0_0/BeeGatewayClient_5_0_0.cs
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,18 +1,25 @@ | ||
Use client generation tool | ||
-------------------------- | ||
# Use client generation tool | ||
|
||
NSwag doesn't support multiple OpenAPI configuration files. They needs to be merged. | ||
|
||
We are using `speccy` tool (https://github.com/wework/speccy) with these command: | ||
|
||
``` | ||
speccy resolve -i .\openapi\Swarm.yaml -o GatewaySwarm.yaml | ||
speccy resolve -i .\openapi\SwarmDebug.yaml -o DebugSwarm.yaml | ||
```shell | ||
speccy resolve -i ./openapi/Swarm.yaml -o GatewaySwarm.yaml | ||
speccy resolve -i ./openapi/SwarmDebug.yaml -o DebugSwarm.yaml | ||
``` | ||
|
||
How to versioning openapi/*.yaml: | ||
- copy *.yaml from official https://github.com/ethersphere/bee/tree/master/openapi in tools/original-open-api | ||
- merge tools/original-open-api in new feature/BNET-xx-Beex.x.x | ||
|
||
# Use Nswag | ||
|
||
Use Nswag to generate client code. Use NSwagStudio for Windows, or NSwag Cli with others. | ||
|
||
NSwag Cli: | ||
|
||
```shell | ||
nswag run swarm-debug-api.nswag | ||
nswag run swarm-gateway-api.nswag | ||
``` |
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
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