action groundhog_day_groundhog { label: "Get a groundhog by slug" description: "Returns a prognosticating animal and its known predictions." provider: groundhog_day method: GET path: "/api/v1/groundhogs/{slug}" encoding: json output: { type: "object" properties: { groundhog: { type: "object" description: "An animal that makes an annual prediction on Groundhog Day." required: ["active", "city", "contact", "coordinates", "country", "currentPrediction", "description", "id", "image", "isGroundhog", "name", "region", "shortname", "slug", "source", "type"] properties: { active: { type: "integer" enum: [0, 1] } city: { type: "string" } contact: { type: "string" } coordinates: { type: "string" } country: { type: "string" } currentPrediction: { type: "string" } description: { type: "string" } id: { type: "integer" } image: { type: "string" } isGroundhog: { type: "integer" } name: { type: "string" } predictions: { type: "array" items: { type: "object" description: "An annual prediction of an early spring or a longer winter." required: ["year", "shadow", "details"] properties: { details: { type: "string" } groundhog: { type: "object" additionalProperties: true } shadow: { type: "integer" } year: { type: "integer" } } } } predictionsCount: { type: "integer" description: "All predictions, excluding nulls." } region: { type: "string" } shortname: { type: "string" } slug: { type: "string" } source: { type: "string" } type: { type: "string" } } } } } }