Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

api_capabilities request query parameter and response key mismatch #4258

Description

@ericholguin

I'm submitting a ...

  • bug report
  • new feature / enhancement request
  • improvement request (usability, performance, tech debt, etc.)
  • other

Traffic Control components affected ...

  • CDN in a Box
  • Documentation
  • Grove
  • Traffic Control Client
  • Traffic Monitor
  • Traffic Ops
  • Traffic Ops ORT
  • Traffic Portal
  • Traffic Router
  • Traffic Stats
  • Traffic Vault
  • unknown

Current behavior:

When making a GET request to api_capabilities with the following query parameter:
?route=user/login the response return is:

HTTP\1.1 200 OK
{
    "response": [
        {
            "id": 1,
            "httpMethod": "POST",
            "httpRoute": "user/login",
            "capability": "auth",
            "lastUpdated": "2020-01-06 12:14:40+00"
        }
    ]
}

However, there is no route key in the response. Only a httpRoute key.

Expected / new behavior:

The requested query parameter should match the response key:
?httpRoute=user/login

Minimal reproduction of the problem with instructions:

Anything else:

This query parameter did not exist in the perl. This query parameter should either be removed or be improved to match the response key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Traffic Opsrelated to Traffic OpsimprovementThe functionality exists but it could be improved in some way.

    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