[PR #20632] [MERGED] #20603: Split GraphQL API into v1 & v2 #15992

Closed
opened 2025-12-30 00:25:12 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20632
Author: @jeremystretch
Created: 10/20/2025
Status: Merged
Merged: 10/20/2025
Merged by: @bctiemann

Base: featureHead: 20603-graphql-api-v2


📝 Commits (1)

📊 Changes

5 files changed (+80 additions, -8 deletions)

View changed files

📝 docs/configuration/graphql-api.md (+10 -0)
📝 netbox/netbox/graphql/schema.py (+45 -4)
netbox/netbox/graphql/utils.py (+16 -0)
📝 netbox/netbox/settings.py (+1 -0)
📝 netbox/netbox/urls.py (+8 -4)

📄 Description

Addresses: #20603

  • Introduce the GRAPHQL_DEFAULT_VERSION config parameter (defaulting to v1)
  • Introduce the get_default_schema() utility function
  • Split the root GraphQL schema and query classes into separate versions
  • Add URLs /graphql/v1/ and /graphql/v2/for direct access to either API version

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/20632 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 10/20/2025 **Status:** ✅ Merged **Merged:** 10/20/2025 **Merged by:** [@bctiemann](https://github.com/bctiemann) **Base:** `feature` ← **Head:** `20603-graphql-api-v2` --- ### 📝 Commits (1) - [`7d82493`](https://github.com/netbox-community/netbox/commit/7d824930527711a2779d047e382444cde8fd5ae3) #20603: Split GraphQL API into v1 & v2 ### 📊 Changes **5 files changed** (+80 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docs/configuration/graphql-api.md` (+10 -0) 📝 `netbox/netbox/graphql/schema.py` (+45 -4) ➕ `netbox/netbox/graphql/utils.py` (+16 -0) 📝 `netbox/netbox/settings.py` (+1 -0) 📝 `netbox/netbox/urls.py` (+8 -4) </details> ### 📄 Description ### Addresses: #20603 - Introduce the `GRAPHQL_DEFAULT_VERSION` config parameter (defaulting to v1) - Introduce the `get_default_schema()` utility function - Split the root GraphQL schema and query classes into separate versions - Add URLs `/graphql/v1/` and `/graphql/v2/`for direct access to either API version --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:25:12 +01:00
adam closed this issue 2025-12-30 00:25:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15992