mutation CreateProfile { createProfile( input: { id: "00000000-0000-0000-0000-000000000000" fullName: "Kevin Chen" orgId: "00000000-0000-0000-0000-000000000000" } ) { profile { id fullName orgId } }}
{ "data": { "createProfile": { "profile": { "id": "00000000-0000-0000-0000-000000000000", "fullName": "Kevin Chen", "orgId": "00000000-0000-0000-0000-000000000000" } } }}
pkgx http POST \ http://localhost:9091/profile.v1beta1.ProfileService/CreateProfile <<<' { "id": "00000000-0000-0000-0000-000000000000", "fullName": "Kevin Chen", "orgId": "00000000-0000-0000-0000-000000000000" } '
curl -v http://localhost:9091/profile.v1beta1.ProfileService/CreateProfile \ -H "Content-Type: application/json" \ --data-binary @- <<EOF { "id": "00000000-0000-0000-0000-000000000000", "fullName": "Kevin Chen", "orgId": "00000000-0000-0000-0000-000000000000" }EOF
pkgx grpcurl \ -use-reflection \ -plaintext \ -d @ localhost:9091 \ profile.v1beta1.ProfileService/CreateProfile <<EOM{ "id": "00000000-0000-0000-0000-000000000000", "fullName": "Kevin Chen", "orgId": "00000000-0000-0000-0000-000000000000"}EOM
{ "profile": { "id": "00000000-0000-0000-0000-000000000000", "fullName": "Kevin Chen", "orgId": "00000000-0000-0000-0000-000000000000" }}
pkgx http \ http://localhost:9091/profiles/00000000-0000-0000-0000-000000000000 \ id="00000000-0000-0000-0000-000000000000" \ fullName="Kevin Chen" \ orgId="00000000-0000-0000-0000-000000000000"
curl -v http://localhost:9091/profiles/00000000-0000-0000-0000-000000000000 \ -H "Content-Type: application/json" \ --data-binary @- <<EOF { "id": "00000000-0000-0000-0000-000000000000", "fullName": "Kevin Chen", "orgId": "00000000-0000-0000-0000-000000000000" }EOF
query GetProfile { profile(id: "d0d77fa9-faa5-4a7d-83a3-92fe3a83544c") { profile { id fullName } }}
pkgx http POST \ http://localhost:9091/profile.v1beta1.ProfileService/GetProfile <<<' { "id": "8816d06a-32da-4b54-8e71-3e4ca9422058" } '
curl -v http://localhost:9091/profile.v1beta1.ProfileService/GetProfile \ -H "Content-Type: application/json" \ --data-binary @- <<EOF { "id": "8816d06a-32da-4b54-8e71-3e4ca9422058" }EOF
pkgx grpcurl \ -use-reflection \ -plaintext \ -d @ localhost:9091 \ profile.v1beta1.ProfileService/GetProfile <<EOM{ "id": "8816d06a-32da-4b54-8e71-3e4ca9422058"}EOM
{ "profile": { "fullName": "Kevin Chen", "id": "8816d06a-32da-4b54-8e71-3e4ca9422058", "orgId": "9997faf2-b1f1-4982-8c75-8d05a73d88f4" }}
pkgx http \ http://localhost:9091/profiles/8816d06a-32da-4b54-8e71-3e4ca9422058
curl -v http://localhost:9091/profiles/8816d06a-32da-4b54-8e71-3e4ca9422058