Skip to content

Instantly share code, notes, and snippets.

@iammateus
Last active March 4, 2024 01:38
Show Gist options
  • Save iammateus/3a484de234e6cc1be7607c58686ba629 to your computer and use it in GitHub Desktop.
Save iammateus/3a484de234e6cc1be7607c58686ba629 to your computer and use it in GitHub Desktop.
open-api.text.yaml
openapi: 3.0.0
info:
title: Mateus API
description: A simple API with one route
version: 1.0.0
paths:
/hello:
get:
summary: Get a friendly greeting
description: Returns a simple greeting message
responses:
'200':
description: Successful response
content:
application/json:
example: { "message": "Hello, world!" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment