application/json
POST
/greet.v1.GreetService/Greet
cURL (application/json)
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"
}