mutation CreateOrg { createOrg( input: { id: "00000000-0000-0000-0000-000000000000" name: "My Org" } ) { org { id name } }}
{ "data": { "createOrg": { "org": { "id": "00000000-0000-0000-0000-000000000000", "name": "My Org" } } }}
pkgx http POST \ http://localhost:9090/org.v1beta1.OrgService/CreateOrg <<<' { "id": "00000000-0000-0000-0000-000000000000", "name": "My Org" } '
curl -v http://localhost:9090/org.v1beta1.OrgService/CreateOrg \ -H "Content-Type: application/json" \ --data-binary @- <<EOF { "id": "00000000-0000-0000-0000-000000000000", "name": "My Org" }EOF
pkgx grpcurl \ -use-reflection \ -plaintext \ -d @ localhost:9090 \ org.v1beta1.OrgService/CreateOrg <<EOM{ "id": "00000000-0000-0000-0000-000000000000", "name": "My Org"}EOM
{ "org": { "id": "00000000-0000-0000-0000-000000000000", "name": "My Org" }}
pkgx http \ http://localhost:9090/orgs/00000000-0000-0000-0000-000000000000 \ id="00000000-0000-0000-0000-000000000000" \ name="My Org"
curl -v http://localhost:9090/orgs/00000000-0000-0000-0000-000000000000 \ -H "Content-Type: application/json" \ --data-binary @- <<EOF { "id": "00000000-0000-0000-0000-000000000000", "name": "My Org" }EOF
query GetOrg { org(id: "d0d77fa9-faa5-4a7d-83a3-92fe3a83544c") { org { id name } }}
pkgx http POST \ http://localhost:9090/org.v1beta1.OrgService/GetOrg <<<' { "id": "9997faf2-b1f1-4982-8c75-8d05a73d88f4" } '
curl -v http://localhost:9090/org.v1beta1.OrgService/GetOrg \ -H "Content-Type: application/json" \ --data-binary @- <<EOF { "id": "9997faf2-b1f1-4982-8c75-8d05a73d88f4" }EOF
pkgx grpcurl \ -use-reflection \ -plaintext \ -d @ localhost:9090 \ org.v1beta1.OrgService/GetOrg <<EOM{ "id": "9997faf2-b1f1-4982-8c75-8d05a73d88f4"}EOM
{ "org": { "id": "9997faf2-b1f1-4982-8c75-8d05a73d88f4", "name": "Org 1" }}
pkgx http \ http://localhost:9090/orgs/9997faf2-b1f1-4982-8c75-8d05a73d88f4
curl -v http://localhost:9090/orgs/9997faf2-b1f1-4982-8c75-8d05a73d88f4