Add a REST API endpoint for ContentTypes #4147

Closed
opened 2025-12-29 18:33:27 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Sep 28, 2020).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Add a new REST API endpoint to allow querying all available ContentTypes, e.g. at /api/extras/content-types/. This endpoint would be read-only, as ContentTypes are created automatically by Django.

Justification

This would enable us to use DynamicModelChoiceField for selecting object types e.g. when filtering changelog records.

Originally created by @jeremystretch on GitHub (Sep 28, 2020). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Add a new REST API endpoint to allow querying all available ContentTypes, e.g. at `/api/extras/content-types/`. This endpoint would be read-only, as ContentTypes are created automatically by Django. ### Justification This would enable us to use DynamicModelChoiceField for selecting object types e.g. when filtering changelog records.
adam added the status: acceptedtype: feature labels 2025-12-29 18:33:27 +01:00
adam closed this issue 2025-12-29 18:33:27 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4147