POST /moarpb.v1.ModuleRegistryService/GetUrl

POST /moarpb.v1.ModuleRegistryService/GetUrl

Body Required

  • moduleName string
  • version string
  • versionConstraint string

Body Required

  • moduleName string
  • version string
  • versionConstraint string

Responses

  • Hide response attributes Show response attributes object
    • code string

      The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

      Values are CodeCanceled, CodeUnknown, CodeInvalidArgument, CodeDeadlineExceeded, CodeNotFound, CodeAlreadyExists, CodePermissionDenied, CodeResourceExhausted, CodeFailedPrecondition, CodeAborted, CodeOutOfRange, CodeInternal, CodeUnavailable, CodeDataLoss, or CodeUnauthenticated.

    • detail array[object]
      Hide detail attribute Show detail attribute object

      Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.

      • @type string

        The type of the serialized message.

    • message string

      A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

    Hide response attributes Show response attributes object
    • code string

      The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

      Values are CodeCanceled, CodeUnknown, CodeInvalidArgument, CodeDeadlineExceeded, CodeNotFound, CodeAlreadyExists, CodePermissionDenied, CodeResourceExhausted, CodeFailedPrecondition, CodeAborted, CodeOutOfRange, CodeInternal, CodeUnavailable, CodeDataLoss, or CodeUnauthenticated.

    • detail array[object]
      Hide detail attribute Show detail attribute object

      Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.

      • @type string

        The type of the serialized message.

    • message string

      A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

  • Hide response attributes Show response attributes object
    • module object

      Additional properties are NOT allowed.

      Hide module attributes Show module attributes object
      • author string
      • language string
      • name string
      • versions array[object]
        Hide versions attributes Show versions attributes object
        • files array[object]
          Hide files attributes Show files attributes object
          • data string(byte)
          • mimeType string
          • name string
        • name string
    • resources array[object]
      Hide resources attributes Show resources attributes object
      • contentType string
      • name string
      • uri string
    • selectedVersion string
    Hide response attributes Show response attributes object
    • module object

      Additional properties are NOT allowed.

      Hide module attributes Show module attributes object
      • author string
      • language string
      • name string
      • versions array[object]
        Hide versions attributes Show versions attributes object
        • files array[object]
          Hide files attributes Show files attributes object
          • data string(byte)
          • mimeType string
          • name string
        • name string
    • resources array[object]
      Hide resources attributes Show resources attributes object
      • contentType string
      • name string
      • uri string
    • selectedVersion string
POST /moarpb.v1.ModuleRegistryService/GetUrl
curl \
 --request POST 'http://localhost:8000/moarpb.v1.ModuleRegistryService/GetUrl' \
 --header "Content-Type: application/json" \
 --data '{"moduleName":"string","version":"string","versionConstraint":"string"}'
curl \
 --request POST 'http://localhost:8000/moarpb.v1.ModuleRegistryService/GetUrl' \
 --header "Content-Type: application/proto"
Request examples
{
  "moduleName": "string",
  "version": "string",
  "versionConstraint": "string"
}
Response examples (default)
{
  "code": "CodeNotFound",
  "detail": [
    {
      "@type": "string"
    }
  ],
  "message": "string"
}
Response examples (200)
{
  "module": {
    "author": "string",
    "language": "string",
    "name": "string",
    "versions": [
      {
        "files": [
          {
            "data": "string",
            "mimeType": "string",
            "name": "string"
          }
        ],
        "name": "string"
      }
    ]
  },
  "resources": [
    {
      "contentType": "string",
      "name": "string",
      "uri": "string"
    }
  ],
  "selectedVersion": "string"
}