![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
The most pleasant HTTP API CLI tool
As long as you have python 3.13 or higher (I recommend using pyenv), just:
pip install api-buddy
First, specify the API you're exploring
api use https://some.api.com
Which will set the api_url
value in your preferences file
# ~/.api-buddy.yaml
api_url: https://some.api.com
Then it's as easy as:
api get some-endpoint
=> 200
{
"look": "I haz data",
"thx": "API Buddy"
}
You can add query params in key=val format:
api get \
my/favorite/endpoint \
first_name=cosmo \
last_name=kramer
You can also add request body data in JSON format:
api post \
some-endpoint \
'{"id": 1, "field": "value"}'
🤔 Note the single-quotes, which keeps your json as a sing continuous string. This means you can expand across multiple lines too:
api post \
some-endpoint \
'{
"id": 1,
"field": "value"
}'
Variables can be interpolated within your endpoint, as part of values in your query params, or anywhere in your request body data, as long as they're defined by name in your preferences:
api post \
'users/#{{user_id}}' \
'name=#{{name}}' \
'{
"occupation": "#{{occupation}}"
}'
use
: (optional) Set the base api_url
you're exploring in your preferences file.
api_url
valueIf you're actually sending an HTTP request:
http_method
: (optional) The HTTP method to use in your request.
get
post
patch
put
delete
endpoint
: (required) The relative path to an API endpoint.
params
: (optional) A list of key=val
query paramsdata
: (optional) A JSON string of requets body data.
get
because HTTP.-h
, --help
: Show the help message-v
, --version
: Show the installed versionRequires:
Steps to start working:
bin/setup
bin/test
poetry run api --help
bin/list
Note to self, publish flow is:
bin/bump
git add . && git commit -m 'Major/Minor/Patch bump x.x.x -> y.y.y'
bin/publish
git push
bin/tag
FAQs
The most pleasant HTTP API CLI tool
We found that api-buddy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.