POST /moarpb.v1.ModuleRegistryService/UploadVersion

POST /moarpb.v1.ModuleRegistryService/UploadVersion

Body Required

Body Required

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.

      Hide detail attributes Show detail attributes object
    • 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]

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

      Hide detail attributes Show detail attributes object
    • 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 attribute Show response attribute object
    Hide response attribute Show response attribute object
POST /moarpb.v1.ModuleRegistryService/UploadVersion
curl \
 -X POST http://localhost:8000/moarpb.v1.ModuleRegistryService/UploadVersion \
 -H "Content-Type: application/json" \
 -d '{"files":[{"data":"string","mimeType":"string","name":"string"}],"moduleName":"string","version":"string"}'
curl \
 -X POST http://localhost:8000/moarpb.v1.ModuleRegistryService/UploadVersion \
 -H "Content-Type: application/proto"
Request example
{
  "files": [
    {
      "data": "string",
      "mimeType": "string",
      "name": "string"
    }
  ],
  "moduleName": "string",
  "version": "string"
}
Response examples (default)
{
  "code": "CodeNotFound",
  "detail": [
    {
      "@type": "string"
    }
  ],
  "message": "string"
}
Response examples (200)
{}