ocket8888 commented on a change in pull request #5344: URL: https://github.com/apache/trafficcontrol/pull/5344#discussion_r535734969
########## File path: docs/source/api/migrating-from-v1.rst ########## @@ -0,0 +1,671 @@ +.. +.. +.. Licensed under the Apache License, Version 2.0 (the "License"); +.. you may not use this file except in compliance with the License. +.. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, software +.. distributed under the License is distributed on an "AS IS" BASIS, +.. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +.. See the License for the specific language governing permissions and +.. limitations under the License. +.. + +.. _to-migrating: + +********************* +Migrating from API V1 +********************* + +Versions 1.0, 1.1, 1.2, 1.3, 1.4, and 1.5 of the :ref:`to-api` have been deprecated since Apache Traffic Control version 4.0.0 and will be removed in Apache Traffic Control version 6.0.0. Any remaining users of 1.x endpoints of the Traffic Ops API are advised to upgrade to API version 3.0. + +Upgrading your Traffic Ops client +================================= + +The easiest way to switch to a new API version is to use the latest version of a Traffic Ops client. + +Golang +------ + +If you are using the **github.com/apache/trafficcontrol/traffic_ops/client** package, use the |to-client-library-godoc|_ package instead. Review comment: I think what you're looking for here is the `to-godoc` text role from the [built-in `atc` extension to our documentation](https://traffic-control-cdn.readthedocs.io/en/latest/development/documentation_guidelines.html#extension) ########## File path: docs/source/api/migrating-from-v1.rst ########## @@ -0,0 +1,671 @@ +.. +.. +.. Licensed under the Apache License, Version 2.0 (the "License"); +.. you may not use this file except in compliance with the License. +.. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, software +.. distributed under the License is distributed on an "AS IS" BASIS, +.. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +.. See the License for the specific language governing permissions and +.. limitations under the License. +.. + +.. _to-migrating: + +********************* +Migrating from API V1 +********************* + +Versions 1.0, 1.1, 1.2, 1.3, 1.4, and 1.5 of the :ref:`to-api` have been deprecated since Apache Traffic Control version 4.0.0 and will be removed in Apache Traffic Control version 6.0.0. Any remaining users of 1.x endpoints of the Traffic Ops API are advised to upgrade to API version 3.0. + +Upgrading your Traffic Ops client +================================= + +The easiest way to switch to a new API version is to use the latest version of a Traffic Ops client. + +Golang +------ + +If you are using the **github.com/apache/trafficcontrol/traffic_ops/client** package, use the |to-client-library-godoc|_ package instead. + +.. |to-client-library-godoc| replace:: **github.com/apache/trafficcontrol/traffic_ops/v3-client** +.. _to-client-library-godoc: https://godoc.org/github.com/apache/trafficcontrol/traffic_ops/v3-client + +Python +______ + +Update to a newer version of the `Apache-TrafficControl <https://pypi.org/project/Apache-TrafficControl>`_ package. Review comment: Much as I would love to put that in, I'm not totally sure it's allowed. That's an unofficial hosting unaffiliated with our project or the ASF, so the official installation method for the Python client is still to just download the source from the repository. Maybe for the 5.0.0 release I'll add a `.whl` to the release binaries on GitHub. Food for thought. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
