-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97faffe
commit f118c2c
Showing
2 changed files
with
11 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,13 +25,16 @@ webrpc-gen -schema=./proto.ridl -target=github.com/webrpc/[email protected] -ou | |
## Set custom template variables | ||
Change any of the following default values by passing `-option="Value"` CLI flag to webrpc-gen. | ||
|
||
| webrpc-gen -option | Default value | Example value | | ||
|----------------------|----------------------------|------------------------------------------------------------------------| | ||
| `-title` | `{Services[0].Name} API` | `"Example API"` | | ||
| `-apiVersion` | `""` | `v22.10.25` | | ||
| `-serverUrl` | `""` | `https://api.example.com` | | ||
| `-serverDescription` | `""` | `"Staging API"` | | ||
| `-servers` | `""` | `http://localhost:8080;description,http://localhost:8081;description` | | ||
| webrpc-gen -option | Default value | Example value | | ||
|------------------------|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------| | ||
| `-title` | `{Services[0].Name} API` | `"Example API"` | | ||
| `-apiVersion` | `""` | `v22.10.25` | | ||
| `-serverUrl` | `""` | `https://api.example.com` | | ||
| `-serverDescription` | `""` | `"Staging API"` | | ||
| `-servers` | `""` | `http://localhost:8080;description,http://localhost:8081;description` | | ||
| `-securityAnnotation` | `""` | `@auth` | | ||
| `-securitySchemes` | `""` | `{"ApiKeyAuth":{"type":"apiKey", "in":"header", "description":"Access key for authenticating requests", "name":"X-Access-Key"}}` | | ||
|
||
|
||
Example: | ||
- server url and server description will become part of the servers format in the end to keeep it backward compatible | ||
|
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