Skip to content

Instantly share code, notes, and snippets.

View rithik-sandron's full-sized avatar
👾
Continuous learning and continuous developement

Rithik Sandron rithik-sandron

👾
Continuous learning and continuous developement
View GitHub Profile
@rithik-sandron
rithik-sandron / curl_crud.sh
Created December 22, 2023 08:55
Basic crud requests using curl. Test your APIs though shell script.
#! /bin/zsh
# routes => /p POST | /:slug => GET DELETE PUT
uri=localhost:3000
post_url=p
DATA='{
"title": "Markdown is good",
"content": "No bytes, no problem. Just insert a document, in MongoDB"
}'