Skip to content

[API] allow more flexible query parameters  #10816

@Landsil

Description

@Landsil

Snipe-IT Version

v5.3.0 - build 6470 (master

Operating System

Ubuntu

Web Server

nginx

PHP Version

7.4.28

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Pulling list of devices via API is very restrictive and requires multiple calls with modified query parameters.

Describe the solution you'd like A clear and concise description of what you want to happen.

Allow for:

  1. Querying multiple of a parameter, eg. category_id=12,26,81
  2. Allow for negative filters, eg. status=-Undeployable

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

No response

Additional context Add any other context or screenshots about the feature request here.

I'm trying to make a script that will pull devices from muliple systems and add them to other multiple systems, eg. MDM's or Content Aware Access.

At the moment my options are to:

  1. Sync all of the devices in system and clean the list in code. (not sustainable for bigger lists)
  2. Pull data multiple times, RTD + Deployed for every category I need. I have 4 for laptops so that's 8 calls. (excluding paging)

Metadata

Metadata

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions