Skip to content

Use nested JSON syntax in unikraft api #369

Description

@jedevc

unikraft api is quite nice. However, in the -d flag, it only takes full JSON bodies.

Ideally we would also support something like the nested JSON syntax of https://httpie.io/docs/cli/nested-json, and make sure it's documented on our generated markdown docs (like here). Also see the docs here: https://unikraft.com/docs/api/platform/v1/instances

Examples:

  • unikraft api /v1/volumes name=data size_mb:=256
  • unikraft api /v1/something 'tags[]=production' 'tags[]=eu-west'

Internal issue: https://linear.app/unikraft/issue/TOOL-927/use-nested-json-syntax-in-unikraft-api

Metadata

Metadata

Assignees

Type

No type
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