[inventory] Fix outdated request paths `/api/0.1.0/` for inventory service

Description

These request paths are rewritten in Traefik to /api/(management|devices)/v1/inventory but this needs to change at the service level in order to remove the gateway.

Acceptance criteria:

  • All inventory API path prefixes /api/0.1.0/* needs a duplicate API path using our updated API scheme:

    • /api/0.1.0/devices* → /api/management/v1/inventory/devices*

    • /api/0.1.0/groups* → /api/management/v1/inventory/groups*

    • /api/0.1.0/attributes → api/devices/v1/inventory/attributes

  • NOTE: In order to remain backward compatible, the service needs to be able to handle both request paths.

Affects versions

None

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Story Points

Priority

Started

Days in progress

Backlog

Zendesk Support

Checklist

Created February 6, 2024 at 6:30 AM
Updated March 13, 2025 at 12:48 PM
Resolved February 3, 2025 at 12:25 PM