Move the object types REST API endpoint to the core app #11354

Closed
opened 2025-12-29 21:44:05 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Jul 8, 2025).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v4.3.3

Feature type

Change to existing functionality

Proposed functionality

Move the REST API endpoint for object types from /api/extras/object-types/ to /api/core/object-types/. We can implement a redirect at the old endpoint to ensure backward compatibility.

(This FR was prompted by FR #19722.)

Use case

The current endpoint is outdated; it was originally implemented to serve Django's native ContentType model. However, in recent releases ObjectType, a proxy model within NetBox's core app, has superseded ContentType, and the REST API endpoint should be moved to reflect this.

Database changes

N/A

External dependencies

N/A

Originally created by @jeremystretch on GitHub (Jul 8, 2025). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v4.3.3 ### Feature type Change to existing functionality ### Proposed functionality Move the REST API endpoint for object types from `/api/extras/object-types/` to `/api/core/object-types/`. We can implement a redirect at the old endpoint to ensure backward compatibility. (This FR was prompted by FR #19722.) ### Use case The current endpoint is outdated; it was originally implemented to serve Django's native ContentType model. However, in recent releases ObjectType, a proxy model within NetBox's `core` app, has superseded ContentType, and the REST API endpoint should be moved to reflect this. ### Database changes N/A ### External dependencies N/A
adam added the status: acceptedtype: featurecomplexity: low labels 2025-12-29 21:44:05 +01:00
adam closed this issue 2025-12-29 21:44:06 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11354