POST /moarpb.v1.ModuleRegistryService/GetModule

POST /moarpb.v1.ModuleRegistryService/GetModule

Body Required

  • moduleName string
  • Additional properties are NOT allowed

Body Required

  • moduleName string
  • Additional properties are NOT allowed

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]

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

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

      Hide detail attributes Show detail attributes object
      • @type string

        The type of the serialized message.

      • Additional properties are allowed
    • 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.

    • Additional properties are NOT allowed
    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]

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

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

      Hide detail attributes Show detail attributes object
      • @type string

        The type of the serialized message.

      • Additional properties are allowed
    • 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.

    • Additional properties are NOT allowed
  • Hide response attributes Show response attributes object
    • module array[object]
      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
          • Additional properties are NOT allowed
        • name string
        • Additional properties are NOT allowed
      • Additional properties are NOT allowed
    • Additional properties are NOT allowed
    Hide response attributes Show response attributes object
    • module array[object]
      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
          • Additional properties are NOT allowed
        • name string
        • Additional properties are NOT allowed
      • Additional properties are NOT allowed
    • Additional properties are NOT allowed
POST /moarpb.v1.ModuleRegistryService/GetModule
curl \
 -X POST http://localhost:8000/moarpb.v1.ModuleRegistryService/GetModule \
 -H "Content-Type: application/json" \
 -d '{"moduleName":"string"}'
curl \
 -X POST http://localhost:8000/moarpb.v1.ModuleRegistryService/GetModule \
 -H "Content-Type: application/proto"
Request example
{
  "moduleName": "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"
        }
      ]
    }
  ]
}