POST /moarpb.v1.ModuleRegistryService/CreateModule

POST /moarpb.v1.ModuleRegistryService/CreateModule

Body Required

  • author string
  • language string
  • moduleName string

Body Required

  • author string
  • language string
  • moduleName 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.

  • Additional properties are NOT allowed.

    Additional properties are NOT allowed.

POST /moarpb.v1.ModuleRegistryService/CreateModule
curl \
 --request POST 'http://localhost:8000/moarpb.v1.ModuleRegistryService/CreateModule' \
 --header "Content-Type: application/json" \
 --data '{"author":"string","language":"string","moduleName":"string"}'
curl \
 --request POST 'http://localhost:8000/moarpb.v1.ModuleRegistryService/CreateModule' \
 --header "Content-Type: application/proto"
Request examples
{
  "author": "string",
  "language": "string",
  "moduleName": "string"
}
Response examples (default)
{
  "code": "CodeNotFound",
  "detail": [
    {
      "@type": "string"
    }
  ],
  "message": "string"
}
Response examples (200)
{}