[PR #19846] [MERGED] Closes #19829: Move object types REST API endpoint to core app #15731

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/19846
Author: @jeremystretch
Created: 7/9/2025
Status: Merged
Merged: 7/16/2025
Merged by: @jeremystretch

Base: featureHead: 19829-api-object-types


📝 Commits (1)

  • 66f445e Closes #19829: Move object types REST API endpoint to core app

📊 Changes

11 files changed (+56 additions, -61 deletions)

View changed files

📝 netbox/core/api/serializers.py (+1 -0)
📝 netbox/core/api/serializers_/object_types.py (+0 -0)
📝 netbox/core/api/urls.py (+1 -0)
📝 netbox/core/api/views.py (+11 -0)
📝 netbox/core/filtersets.py (+21 -2)
📝 netbox/core/tests/test_api.py (+17 -0)
📝 netbox/extras/api/serializers.py (+0 -1)
📝 netbox/extras/api/urls.py (+4 -1)
📝 netbox/extras/api/views.py (+1 -16)
📝 netbox/extras/filtersets.py (+0 -24)
📝 netbox/extras/tests/test_api.py (+0 -17)

📄 Description

Closes: #19829

  • Move the API endpoint, serializer, filterset, and test class for ObjectType from extras to core
  • Keep a copy of the endpoint functional at /api/extras/object-types/ to temporarily retain backward compatibility

🔄 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/19846 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 7/9/2025 **Status:** ✅ Merged **Merged:** 7/16/2025 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `19829-api-object-types` --- ### 📝 Commits (1) - [`66f445e`](https://github.com/netbox-community/netbox/commit/66f445e0ee3898a6dc1b859e352f58280ba9758e) Closes #19829: Move object types REST API endpoint to core app ### 📊 Changes **11 files changed** (+56 additions, -61 deletions) <details> <summary>View changed files</summary> 📝 `netbox/core/api/serializers.py` (+1 -0) 📝 `netbox/core/api/serializers_/object_types.py` (+0 -0) 📝 `netbox/core/api/urls.py` (+1 -0) 📝 `netbox/core/api/views.py` (+11 -0) 📝 `netbox/core/filtersets.py` (+21 -2) 📝 `netbox/core/tests/test_api.py` (+17 -0) 📝 `netbox/extras/api/serializers.py` (+0 -1) 📝 `netbox/extras/api/urls.py` (+4 -1) 📝 `netbox/extras/api/views.py` (+1 -16) 📝 `netbox/extras/filtersets.py` (+0 -24) 📝 `netbox/extras/tests/test_api.py` (+0 -17) </details> ### 📄 Description ### Closes: #19829 - Move the API endpoint, serializer, filterset, and test class for ObjectType from `extras` to `core` - Keep a copy of the endpoint functional at `/api/extras/object-types/` to temporarily retain backward compatibility --- <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:23:42 +01:00
adam closed this issue 2025-12-30 00:23:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15731