Use curl to send REST queries

curl -v -X<type> -H <headers> -F <param1> -F <param2> <api_url>
curl -v -XGET -H 'Authorization: Token __API_TOKEN__' <some_api_server>/category/
curl -v -XPOST -H 'Authorization: Token __API_TOKEN__' -H Content-Type:application/json --data '{"detection_label": "__LABEL_ID__", "image": "__IMAGE_ID__", "data": [xmin, ymin, xmax, ymax] }' <some_api_server>/detection
curl -v -u "<login>:<password>"




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

ViteBridge 0.1 Bug Bounty Program

Microsoft Sentinel — Testing detection rules like a Ninja

eBay’s New Approach to Managing a Vast Service Architecture

~@@Covid-19: How will all of this affect business

Gladius Smart Contracts Security Audit

Released Online Calculator that named “SMART CALCULATOR”

Scrum certification PSM1 demystified

{UPDATE} Sudoku: Gra Logiczna Hack Free Resources Generator

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Privalov Vladimir

Privalov Vladimir

More from Medium

Myoelectric Prosthetic Arm — MYRO 2.0

Adding “SubjectAlternativeName” to certificate using OpenSSL


Version Control With Git: A Deep Dive — Part II