Skip to content

Instantly share code, notes, and snippets.

@skobba
Last active February 18, 2021 00:36
Show Gist options
  • Select an option

  • Save skobba/de73dc0df176a8ea76d5be7447711531 to your computer and use it in GitHub Desktop.

Select an option

Save skobba/de73dc0df176a8ea76d5be7447711531 to your computer and use it in GitHub Desktop.
curl
# POST w/ token
curl -H "Authorization: bearer $TOKEN" -H "Content-Type: application/json" -X POST -d '
{ "invoice":
{
"matter": "5bc9a264da9a42bee9c9cf48",
"unitPrice": 10200
}
}' http://localhost:4000/api/invoices
# POST
curl -H "Content-Type: application/json" -X POST -d '
{ "invoice":
{
"matter": "5bc9a264da9a42bee9c9cf48",
"unitPrice": 10200
}
}' http://localhost:4000/api/invoices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment