Skip to content

Productivity suggestions for Web Cmdlets #6626

@mtman

Description

@mtman
  • Add a parameter that does the following:

    1. Accepts Hashtable, converts it into JSON (with -Depth 99 if the cmdlet is used), sets it as Body
    2. Sets ContentType to application/json

    The intend is to make sending JSON as easy as sending a form, given it's the more often used format for APIs.
    Example name: JsonBody

Inspired by Curl and especially intended for REPL:

  • Add aliases for all or at least the commonly used parameters. Aliases, unlike partial names, provide certainty and have a short display form at the same time. Some might match with Curl if applicable.
    Example: b and/or d for Body, ua for UserAgent

  • If Uri lacks the protocol, attach http:// automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifIssue-Enhancementthe issue is more of a feature request than a bugResolution-AnsweredThe question is answered.WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions