License API
CreateLicense
GraphQL
mutation CreateLicense {  createLicense(    input: {      id: "00000000-0000-0000-0000-000000000000"      userId: "00000000-0000-0000-0000-000000000000"      start: "2023-11-16T12:00:00Z"      end: "2024-01-16T12:00:00Z"    }  ) {    license {      id      userId      start      end    }  }}Response
{  "data": {    "createLicense": {      "license": {        "id": "00000000-0000-0000-0000-000000000000",        "userId": "00000000-0000-0000-0000-000000000000",        "start": "2023-11-16T12:00:00Z",        "end": "2024-01-16T12:00:00Z"      }    }  }}Connect
pkgx http POST \  http://localhost:9092/license.v1beta1.LicenseService/CreateLicense <<<'  {    "id": "00000000-0000-0000-0000-000000000000",    "userId": "00000000-0000-0000-0000-000000000000",    "start": "2023-11-16T12:00:00Z",    "end": "2024-01-16T12:00:00Z"  }  'curl -v http://localhost:9092/license.v1beta1.LicenseService/CreateLicense \  -H "Content-Type: application/json" \  --data-binary @- <<EOF  {    "id": "00000000-0000-0000-0000-000000000000",    "userId": "00000000-0000-0000-0000-000000000000",    "start": "2023-11-16T12:00:00Z",    "end": "2024-01-16T12:00:00Z"  }EOFpkgx grpcurl \  -use-reflection \  -plaintext \  -d @ localhost:9092 \  license.v1beta1.LicenseService/CreateLicense <<EOM{  "id": "00000000-0000-0000-0000-000000000000",  "userId": "00000000-0000-0000-0000-000000000000",  "start": "2023-11-16T12:00:00Z",  "end": "2024-01-16T12:00:00Z"}EOMResponse
{  "license": {    "id": "00000000-0000-0000-0000-000000000000",    "userId": "00000000-0000-0000-0000-000000000000",    "start": "2023-11-16T12:00:00Z",    "end": "2024-01-16T12:00:00Z"  }}REST
pkgx http \  http://localhost:9092/licenses/00000000-0000-0000-0000-000000000000 \    id="00000000-0000-0000-0000-000000000000" \    userId="00000000-0000-0000-0000-000000000000" \    start="2023-11-16T12:00:00Z" \    end="2024-01-16T12:00:00Z"curl -v http://localhost:9092/licenses/00000000-0000-0000-0000-000000000000 \  -H "Content-Type: application/json" \  --data-binary @- <<EOF  {    "id": "00000000-0000-0000-0000-000000000000",    "userId": "00000000-0000-0000-0000-000000000000",    "start": "2023-11-16T12:00:00Z",    "end": "2024-01-16T12:00:00Z"  }EOFGetLicense
GraphQL
query GetLicense {  getLicense: license(id: "220d4191-6bb0-49de-a912-31b4d43e14b5") {    license {      id      userId      start      end    }  }}Response
{  "data": {    "getLicense": {      "license": {        "id": "220d4191-6bb0-49de-a912-31b4d43e14b5",        "userId": "4759a80d-4665-45d6-a87a-9ae1b4c4c873",        "start": "2023-11-16T12:00:00Z",        "end": "2024-01-16T12:00:00Z"      }    }  }}Connect
pkgx http POST \  http://localhost:9092/license.v1beta1.LicenseService/GetLicense <<<'  {    "id": "220d4191-6bb0-49de-a912-31b4d43e14b5"  }  'curl -v http://localhost:9092/license.v1beta1.LicenseService/GetLicense \  -H "Content-Type: application/json" \  --data-binary @- <<EOF  {    "id": "220d4191-6bb0-49de-a912-31b4d43e14b5"  }EOFpkgx grpcurl \  -use-reflection \  -plaintext \  -d @ localhost:9092 \  license.v1beta1.LicenseService/GetLicense <<EOM{  "id": "220d4191-6bb0-49de-a912-31b4d43e14b5"}EOMResponse
{  "license": {    "end": "2024-01-16T12:00:00Z",    "id": "220d4191-6bb0-49de-a912-31b4d43e14b5",    "start": "2023-11-16T12:00:00Z",    "userId": "4759a80d-4665-45d6-a87a-9ae1b4c4c873"  }}REST
pkgx http \  http://localhost:9092/licenses/220d4191-6bb0-49de-a912-31b4d43e14b5curl -v http://localhost:9092/licenses/220d4191-6bb0-49de-a912-31b4d43e14b5