rstudio / connectapi

An R package for interacting with the RStudio Connect Server API
https://pkgs.rstudio.com/connectapi/
Other
43 stars 25 forks source link

Check for X-Deprecated-Endpoint header #268

Closed nealrichardson closed 4 months ago

nealrichardson commented 4 months ago

connectapi shouldn't be calling deprecated endpoints--when we deprecate endpoints that it uses, we'll make sure to check the Connect server version and call the correct endpoints accordingly, so that it only calls deprecated endpoints on older Connect versions where they aren't deprecated. The only circumstance where connectapi would hit a deprecated endpoint would be if you're pointing at a newer version of Connect but an old version of connectapi that doesn't know about the new, non-deprecated endpoints. So, when receiving a X-Deprecated-Endpoint response header, the recommendation to the user is to upgrade connectapi.