mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-01 03:46:23 +02:00
35 lines
768 B
YAML
35 lines
768 B
YAML
|
|
openapi: "3.0.0"
|
||
|
|
|
||
|
|
info:
|
||
|
|
title: Hello World
|
||
|
|
version: "1.0"
|
||
|
|
servers:
|
||
|
|
- url: /openapi
|
||
|
|
|
||
|
|
paths:
|
||
|
|
/greeting/{name}:
|
||
|
|
post:
|
||
|
|
summary: Generate greeting
|
||
|
|
description: Generates a greeting message.
|
||
|
|
operationId: hello.post_greeting
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: greeting response
|
||
|
|
content:
|
||
|
|
text/plain:
|
||
|
|
schema:
|
||
|
|
type: string
|
||
|
|
example: "hello dave!"
|
||
|
|
parameters:
|
||
|
|
- name: name
|
||
|
|
in: path
|
||
|
|
description: Name of the person to greet.
|
||
|
|
required: true
|
||
|
|
schema:
|
||
|
|
type: string
|
||
|
|
example: "dave"
|
||
|
|
requestBody:
|
||
|
|
content:
|
||
|
|
application/json:
|
||
|
|
schema:
|
||
|
|
type: object
|