Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

API 2.0 documentation#4371

Merged
ocket8888 merged 14 commits into
apache:masterfrom
mhoppa:feature/v2_api_documentation
Feb 20, 2020
Merged

API 2.0 documentation#4371
ocket8888 merged 14 commits into
apache:masterfrom
mhoppa:feature/v2_api_documentation

Conversation

@mhoppa
Copy link
Copy Markdown
Contributor

@mhoppa mhoppa commented Feb 4, 2020

What does this PR (Pull Request) do?

Updates API documentation for version 2.0. Deletes deprecated routes. Also deletes versionadded/versionchanged as version 2.0 will be top of tree.

Which Traffic Control components are affected by this PR?

  • Documentation

What is the best way to verify this PR?

Build docs, as this is a pure documentation change there are no tests.

If this is a bug fix, what versions of Traffic Control are affected?

The following criteria are ALL met by this PR

  • This PR includes tests OR I have explained why tests are unnecessary
  • This PR includes documentation OR I have explained why documentation is unnecessary
  • This PR includes an update to CHANGELOG.md OR such an update is not necessary
  • This PR includes any and all required license headers
  • This PR ensures that database migration sequence is correct OR this PR does not include a database migration
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

Additional Information

THIS SHOULD NOT BE MERGED OR MARKED READY UNTIL 2.0 is cut

@mhoppa mhoppa mentioned this pull request Feb 5, 2020
12 tasks
@mhoppa
Copy link
Copy Markdown
Contributor Author

mhoppa commented Feb 5, 2020

Once 2.0 #4378 is merged this will be ready to review

@mhoppa mhoppa changed the title WIP - API 2.0 documentation API 2.0 documentation Feb 7, 2020
@mhoppa mhoppa marked this pull request as ready for review February 7, 2020 18:11
@mhoppa
Copy link
Copy Markdown
Contributor Author

mhoppa commented Feb 7, 2020

Ready for review but still needs 2.0 to be cut first

@ocket8888 ocket8888 self-assigned this Feb 10, 2020
@ocket8888 ocket8888 added documentation related to documentation new feature A new feature, capability or behavior high impact impacts the basic function, deployment, or operation of a CDN labels Feb 10, 2020
@mhoppa
Copy link
Copy Markdown
Contributor Author

mhoppa commented Feb 12, 2020

Nothing blocking this merge since 2.0 is now cut. So once reviewed 👍

Copy link
Copy Markdown
Contributor

@ocket8888 ocket8888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right off the bat I wanna bring up these references to the 1.x API I found scattered around (in GNU file:line:col style, using docs/source as the root):

admin/traffic_router.rst:145:109
admin/traffic_vault.rst:232:71
admin/quick_howto/ciab.rst:183:540 - this one also has a weird inaccuracy, comparing two different endpoints, which I'd appreciate it if you could fix, but no worries if you don't want to
admin/quick_howto/ciab.rst:200:322

There's also a note about .json suffixes at api/index.rst:104:0 that should be updated to make it clear that while that was merely discouraged in the 1.x API, it is no longer at all supported in 2.0.

Comment thread docs/source/api/v2/cdns_name_snapshot.rst Outdated
Comment thread docs/source/api/v2/cdns_name_snapshot_new.rst Outdated
@mhoppa
Copy link
Copy Markdown
Contributor Author

mhoppa commented Feb 14, 2020

Done @ocket8888 thanks for making my life easy with the line number references

@mhoppa mhoppa requested a review from ocket8888 February 14, 2020 15:04
Copy link
Copy Markdown
Contributor

@ocket8888 ocket8888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You didn't change the reference label on /deliveryservices/xmlid/{{XML ID}}/urlkeys to use v1 in the label like all the others.

/user/{{ID}}//deliveryservices/available should have a reference label

/cdns/{{CDN}}/configfiles/ats/{{filename}} doesn't exist in API 2.0, and so shouldn't be documented.

/profiles/{{Profile}}/configfiles/ats/{{filename}} doesn't exist in API 2.0, and so shouldn't be documented.

Comment thread docs/source/api/v1/cdns_capacity.rst Outdated
Comment thread docs/source/api/v1/cdns_health.rst Outdated
Comment thread docs/source/api/v1/osversions.rst Outdated
Comment thread docs/source/api/v2/deliveryservices_hostname_name_sslkeys.rst Outdated
Comment thread docs/source/api/v2/deliveryservices_hostname_name_sslkeys.rst Outdated
Comment thread docs/source/api/v2/servers_server_configfiles_ats_filename.rst Outdated
Comment thread docs/source/api/v2/tenants.rst Outdated
Comment thread docs/source/api/v2/tenants_id.rst Outdated
Comment thread docs/source/api/v2/tenants_id.rst Outdated
Comment thread traffic_control/clients/python/trafficops/tosession.py Outdated
@ocket8888
Copy link
Copy Markdown
Contributor

In addition to the merge conflicts shown here there are some new API 1.5 endpoints with docs that need copy/pasting into v1/v2 sub-dirs

Copy link
Copy Markdown
Contributor

@ocket8888 ocket8888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good (aside from grammatical errors that aren't your fault and I'll fix them all later) and it builds without warnings or errors.

@ocket8888
Copy link
Copy Markdown
Contributor

just gotta fix some merge conflicts, apparently.

@mhoppa
Copy link
Copy Markdown
Contributor Author

mhoppa commented Feb 19, 2020

merged in

Copy link
Copy Markdown
Contributor

@ocket8888 ocket8888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like there's a bad ref in tosession.py, the create_region method is referencing to-api-divisions-name-regions (which doesn't exist - and shouldn't) even though the route it's actually using is just /regions.

@mhoppa
Copy link
Copy Markdown
Contributor Author

mhoppa commented Feb 20, 2020

huh looks to be from master - ill fix!

@mhoppa
Copy link
Copy Markdown
Contributor Author

mhoppa commented Feb 20, 2020

done

Copy link
Copy Markdown
Contributor

@ocket8888 ocket8888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, no errors/warnings in the docs build, everything seems accurate

looks like I left two API 1.x methods in the Python client, though. Need to get those out.

@ocket8888 ocket8888 merged commit 9352043 into apache:master Feb 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation related to documentation high impact impacts the basic function, deployment, or operation of a CDN new feature A new feature, capability or behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants