POST /greet.v1.GreetService/Greet

POST /greet.v1.GreetService/Greet

Body Required

  • name string
  • Additional properties are NOT allowed

Responses

  • Hide response attributes Show response attributes object
    • greeting string
    • Additional properties are NOT allowed
  • Hide response attributes Show response attributes object
    • code string

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

    • message string
    • Additional properties are NOT allowed
POST /greet.v1.GreetService/Greet
curl \
 -X POST http://api.example.com/greet.v1.GreetService/Greet \
 -H "Content-Type: application/json" \
 -d '{"name":"string"}'
curl \
 -X POST http://api.example.com/greet.v1.GreetService/Greet \
 -H "Content-Type: application/proto"
Request example
{
  "name": "string"
}
Response examples (200)
{
  "greeting": "string"
}
Response examples (default)
{
  "code": "CodeNotFound",
  "message": "string"
}