Update client-server API endpoints to move from r0 to v3 (plus whitespace fixes) (#3421)
* Blind find & replace all on client major version -> v3 * Fix up bad replacements * Fix anchors for r0->v3 * Changelog
This commit is contained in:
parent
2d98cd3084
commit
95d850c418
69 changed files with 206 additions and 210 deletions
|
@ -107,8 +107,6 @@ for filename in os.listdir(cs_api_dir):
|
|||
|
||||
basePath = api['basePath']
|
||||
for path, methods in api["paths"].items():
|
||||
path = (basePath + path).replace('%CLIENT_MAJOR_VERSION%',
|
||||
major_version)
|
||||
for method, spec in methods.items():
|
||||
if "tags" in spec.keys():
|
||||
if path not in output["paths"]:
|
||||
|
@ -126,5 +124,4 @@ except OSError as e:
|
|||
with open(output_file, "w") as f:
|
||||
text = json.dumps(output, sort_keys=True, indent=4)
|
||||
text = text.replace("%CLIENT_RELEASE_LABEL%", release_label)
|
||||
text = text.replace("%CLIENT_MAJOR_VERSION%", major_version)
|
||||
f.write(text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue