Skip to content

Query Parameters #240

@FragmentedPacket

Description

@FragmentedPacket

Are we able to add a method to the Request object to fetch the available query_params from the Open API spec of NetBox?

URL: http://netbox/api/docs/?format=openapi" returns something along these lines:

openapi["paths"]["/dcim/devices/"]["get"]["parameters"]

This will help out in one of the projects I manage by validating query params passed in by users without much more client side logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions