{ "name": "Catalyst Squad hello world example api", "description": "API definition for the Hello World end-to-end example from Catalyst Squad", "info": { "contact": { "name": "Catalyst Squad", "email": "opensource@catalystsquad.com", "url": "https://catalystsquad.com" } }, "models": { "hello": { "description": "A Hello with a name and id", "fields": [ { "name": "id", "type": "uuid", "description": "The ID of the hello." }, { "name": "name", "type": "string", "example":"Jane", "description": "The name to hello" } ] }, "newhello": { "description": "A Hello that has not yet been created", "fields": [ { "name": "name", "type": "string", "example":"Jane", "description": "The name to hello" } ] } }, "resources": { "hello": { "path": "/helloes", "operations": [ { "method": "GET", "responses": { "200": { "type": "hello" }, "404": { "type": "unit" } } }, { "method": "POST", "responses": { "200": { "type": "hello" }, "401": { "type": "string" } } } ] } } }