Skip to content

Support for Export Templates through the API #598

Description

@mathieued

Plugin Version

0.5.1

Proposed functionality

Add the support on export templates for Custom Objects through the API.

Today this feature is supported and working as expected through the UI, but not from the API. Adding the ?export= parameter to the API URL endpoint is just ignored: the API returns the JSON data as if no export parameter was in the URL.

I guess the reason for that is because API ViewSets for Custom Objects are not inheriting NetboxModelViewSet but directly from Django's ModelViewSet.

Use case

Being able to download the resulting file of an export template for a Custom Object, through the API.

External dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity: mediumRequires a substantial but not unusual amount of effort to implementstatus: backlogtype: featureA new feature or functionality

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions