Gaucho

Gaucho

fazedor de sites 🐘 • tentando ser dataísta 💪

GitHubTwitter

CRUD

crud e rest

curl

create

curl -X POST example.com

create (com payload)

curl -X POST -H "Content-Type: application/json" -d "{\"msg\": \"hello world\"}" example.com

read

curl -X GET example.com

update

curl -X PUT example.com

update (com payload)

curl -X PUT -H "Content-Type: application/json" -d "{\"msg\": \"ola mundo\"}" example.com

usando um arquivo como payload:

curl -X PUT -d @nomeDoArquivo example.com

delete

curl -X DELETE example.com

Fontes:

Página inicial

GitHubTwitter