Skip to content

[CLI] List outputs in table format #553

@malinthaprasan

Description

@malinthaprasan

Current Limitation

Current way of listing takes bit space and when there are many APIs to list it will become a problem

$ ap gateway api list
API 1:
  ID: weather-api-v1.0
  Name: 
  Version: v1.0
  Context: /weather/$version
  Status: deployed
  Created At: 2025-12-22T01:35:30.365461764Z

Suggested Improvement

Use table format

$ ap gateway api list
  ID                 NAME         VERSION   CONTEXT            STATUS     CREATED AT
  weather-api-v1.0   weather-api  v1.0      /weather/$version  deployed   2025-12-22T01:35:30Z
  petstore-v2.0      petstore     v2.0      /petstore/$version active     2025-12-21T10:20:15Z
  users-api-v1.1     users-api    v1.1      /users/$version    deployed   2025-12-20T08:45:00Z

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions