Skip to content

Commit

Permalink
Remove legacy v2 Admin API docs (#6164)
Browse files Browse the repository at this point in the history
## What are you changing in this pull request and why?
<!--
Describe your changes and why you're making them. If related to an open
issue or a pull request on dbt Core or another repository, then link to
them here!

To learn more about the writing conventions used in the dbt Labs docs,
see the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md).
-->

The newer v2 admin API docs have now reached parity with the legacy
docs, so it is safe to remove the old pages. Also adds redirects.

## Checklist
- [x] I have reviewed the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
so my content adheres to these guidelines.
- [ ] The topic I'm writing about is for specific dbt version(s) and I
have versioned it according to the [version a whole
page](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version)
and/or [version a block of
content](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#versioning-blocks-of-content)
guidelines.
- [ ] I have added checklist item(s) to this list for anything anything
that needs to happen before this PR is merged, such as "needs technical
review" or "change base branch."
<!--
PRE-RELEASE VERSION OF dbt (if so, uncomment):
- [ ] Add a note to the prerelease version [Migration
Guide](https://github.com/dbt-labs/docs.getdbt.com/tree/current/website/docs/docs/dbt-versions/core-upgrade)
-->
<!-- 
ADDING OR REMOVING PAGES (if so, uncomment):
- [ ] Add/remove page in `website/sidebars.js`
- [ ] Provide a unique filename for new pages
- [ ] Add an entry for deleted pages in `website/vercel.json`
- [ ] Run link testing locally with `npm run build` to update the links
that point to deleted pages
-->

Co-authored-by: Matt Shaver <[email protected]>
  • Loading branch information
GideonShils and matthewshaver authored Oct 1, 2024
1 parent ce4a847 commit b4ce442
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
6 changes: 0 additions & 6 deletions website/docs/docs/dbt-cloud-apis/admin-cloud-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ Many endpoints of the Administrative API can also be called through the [dbt Clo

<div className="grid--2-col">

<Card
title="API v2 (legacy docs)"
body="Our legacy API version, with limited endpoints and features. Contains information not available in v3."
link="/dbt-cloud/api-v2-legacy"
icon="pencil-paper"/>

<Card
title="API v2"
body="Our legacy API version, with limited endpoints and features. Contains information not available in v3."
Expand Down
5 changes: 0 additions & 5 deletions website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,11 +642,6 @@ const sidebarSettings = {
link: { type: "doc", id: "docs/dbt-cloud-apis/admin-cloud-api" },
items: [
"docs/dbt-cloud-apis/admin-cloud-api",
{
type: "link",
label: "API v2 (legacy docs)",
href: "/dbt-cloud/api-v2-legacy",
},
{
type: "link",
label: "API v2",
Expand Down
5 changes: 5 additions & 0 deletions website/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -2986,6 +2986,11 @@
"destination": "/dbt-cloud/api-v2-legacy",
"permanent": true
},
{
"source": "/dbt-cloud/api-v2-legacy",
"destination": "/dbt-cloud/api-v2",
"permanent": true
},
{
"source": "/dbt-cloud/api-v4",
"destination": "/docs/dbt-cloud-apis/admin-cloud-api",
Expand Down

0 comments on commit b4ce442

Please sign in to comment.