examples using pipelines for http put,patch,post
This commit is contained in:
parent
9449473294
commit
8c93fb7f2d
|
@ -126,6 +126,11 @@ impl Command for SubCommand {
|
||||||
example: "http patch --content-type application/json https://www.example.com { field: value }",
|
example: "http patch --content-type application/json https://www.example.com { field: value }",
|
||||||
result: None,
|
result: None,
|
||||||
},
|
},
|
||||||
|
Example {
|
||||||
|
description: "Patch JSON content from a pipeline to example.com",
|
||||||
|
example: "open foo.json | http patch https://www.example.com",
|
||||||
|
result: None,
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,6 +124,11 @@ impl Command for SubCommand {
|
||||||
example: "http post --content-type application/json https://www.example.com { field: value }",
|
example: "http post --content-type application/json https://www.example.com { field: value }",
|
||||||
result: None,
|
result: None,
|
||||||
},
|
},
|
||||||
|
Example {
|
||||||
|
description: "Post JSON content from a pipeline to example.com",
|
||||||
|
example: "open foo.json | http post https://www.example.com",
|
||||||
|
result: None,
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,6 +124,11 @@ impl Command for SubCommand {
|
||||||
example: "http put --content-type application/json https://www.example.com { field: value }",
|
example: "http put --content-type application/json https://www.example.com { field: value }",
|
||||||
result: None,
|
result: None,
|
||||||
},
|
},
|
||||||
|
Example {
|
||||||
|
description: "Put JSON content from a pipeline to example.com",
|
||||||
|
example: "open foo.json | http put https://www.example.com",
|
||||||
|
result: None,
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user