Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure in api.json generation #73

Open
richardcase opened this issue Oct 11, 2016 · 1 comment
Open

Failure in api.json generation #73

richardcase opened this issue Oct 11, 2016 · 1 comment

Comments

@richardcase
Copy link
Contributor

When generating the api.json file using the clc-go-cli/scripts/generate_api script an error is encountered:

-----------Parsing node: Data = div, Attrs = [{Namespace: Key:class Val:kb-post-content kb-post-content--api} {Namespace: Key:data-api-section Val:get-cross-data-center-firewall-policy-list}], Content: 

parseUrl called
findNodeByHeader header found:: Data = h3, Attrs = [], Content: Structure
findNodeByHeader container:: Data = pre, Attrs = []
findNodeByHeader target found:: Data = GET https://api.ctl.io/v2-experimental/crossDcFirewallPolicies/{sourceAccountId}/{dataCenter}?destinationAccountId=<other account id>
, Attrs = []
Error while parsing API definition: Incorrect format of url section
@richardcase
Copy link
Contributor Author

This error is caused by the API documentation using an incorrect token identifier. This is current URL definition in the API docs:

://api.ctl.io/v2-experimental/crossDcFirewallPolicies/{sourceAccountId}/{dataCenter}?destinationAccountId=<other account id>

This should be:

://api.ctl.io/v2-experimental/crossDcFirewallPolicies/{sourceAccountId}/{dataCenter}?destinationAccountId={destinationAccountId}

I will fix this in https://github.com/CenturyLinkCloud/APIDocs/blob/master/Firewall%20Policies/get-cross-dc-firewall-policy-list.md.

The issue should remain open until this is confirmed fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant