cURL (https://curl.se/) is one of my favorite tools when working with REST APIs. The use of this tool is found in almost all scripts.
With it, you can test your HTTP handlers and even write example requests and responses in the service documentation. Of course, there are other tools, such as HTTPie (https://httpie.org/), xh (https://github.com/ducaale/xh) and others.

#curl #Web #HTTP #REST #API #HTTPie #xh #POST #GET

@bagder

Watched it and yes, DOT delivered another good introduction to a useful DX tool. I know it will make me use #cURL exponentially more.

It also made me install #xh as a complement. Both because I like how colors make it easier to analyse, and for it providing a less complex command for basic stuff.

But also for its "--curl" option ;)

Off-Topic: I was using #Postman for a longer time, for testing #REST APIs. It's great but I was looking for something to use in tmux and terminals. After experimenting with curl | jq for a few days – what works really great but it's not very intuitive in my opinion – I've found #httpie and used it for some days of this week. I like it but it's also somehow a little bit sluggish. At least that is my impression. Today I've discovered #xh and I'm very happy: https://github.com/ducaale/xh
GitHub - ducaale/xh: Friendly and fast tool for sending HTTP requests

Friendly and fast tool for sending HTTP requests. Contribute to ducaale/xh development by creating an account on GitHub.

GitHub

I have, literally, 7 different flavours of subminiature crimp-pin connectors in my parts collection.

And yet, somehow, whatever I'm working on has a nearly-identical-but-not-quite kind that isn't in my collection.

Murphy was an optimist.

#murphy #jst #xh #ph #xa #pa #zh #gh #sh #MurphysLaw #NotQuite #almost #electronics #hobby #crimp #pin #socket

あ、自分と似たようなことをしている人がいる。
シガーライターソケットで動くUSB PD アダプタならDC12-24V 食えるからマキタバッテリ直結で行けるのは手元でも確認してるけどやっぱり過放電対策必要だよね。

マキタ10.8Vバッテリーが使えるポータブル電源を作ってみた #ACI-SG300SW #XH-M609 #ポータブル電源 #正弦波 #インバーター #makita #12voltbattery - YouTube https://www.youtube.com/watch?v=VxppvaOV3jw
マキタ10.8Vに低電圧保護を付けてノートPCを充電します #XH-M609 #carcharger #usb #pd #lowpower #protection - YouTube https://www.youtube.com/watch?v=YOmxuUSse8k

マキタ10.8Vバッテリーが使えるポータブル電源を作ってみた #ACI-SG300SW #XH-M609 #ポータブル電源 #正弦波 #インバーター #makita #12voltbattery

YouTube
More #Rust #CLI #tools:
#navi ⬅️ man+fzf
#hyperfine ⬅️ benchmarking
#czkawka ⬅️ duplicates finder
#mdcat ⬅️ markdown render
#tectonic ⬅️ latex engine
#grex ⬅️ RE generator
#watchexec ⬅️ run commands on file modifications
#xh ⬅️ httpie
#just ⬅️ command runner
#tokei ⬅️ cloc
#sd ⬅️ sed
#amber ⬅️ sed
#dua ⬅️ ncdu
#pueue ⬅️ parallel

#xh is a #HTTP request tool.

xh sends HTTP requests using a simple syntax. Responses are displayed in an easy to read, colourised output. Many aspects of the request can be managed, like TLS certificates, reuse of sessions, ignoring redirects, etc. xh is mostly compatible with #HTTPie, but offers improved speed, smaller size in a single binary, as well as better interoperability with #cURL.

Website 🔗️: https://github.com/ducaale/xh

#free #opensource #foss #fossmendations #sysadmin

GitHub - ducaale/xh: Friendly and fast tool for sending HTTP requests

Friendly and fast tool for sending HTTP requests. Contribute to ducaale/xh development by creating an account on GitHub.

GitHub