Get a greeting

GET /greeting/{name}

Path parameters

  • name string Required

    Name to greet

    Maximum length is 30.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
  • default application/problem+json

    Error

    Hide response attributes Show response attributes object
    • $schema string(uri)

      A URL to the JSON Schema for this object.

    • detail string

      A human-readable explanation specific to this occurrence of the problem.

    • errors array[object]

      Optional list of individual error details

      Hide errors attributes Show errors attributes object
    • instance string(uri)

      A URI reference that identifies the specific occurrence of the problem.

    • status integer(int64)

      HTTP status code

    • title string

      A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

    • type string(uri)

      A URI reference to human-readable documentation for the error.

      Default value is about:blank.

GET /greeting/{name}
curl \
 -X GET http://api.example.com/greeting/world
Response examples (200)
{
  "$schema": "https://example.com",
  "message": "Hello, world!"
}
Response examples (default)
{
  "$schema": "https://example.com",
  "detail": "Property foo is required but is missing.",
  "errors": [
    {
      "location": "string",
      "message": "string"
    }
  ],
  "instance": "https://example.com/error-log/abc123",
  "status": 400,
  "title": "Bad Request",
  "type": "https://example.com/errors/example"
}