Skip to content

Instantly share code, notes, and snippets.

@rindrics
Created July 21, 2026 04:00
Show Gist options
  • Select an option

  • Save rindrics/e0c1c2d04a64612a75e6f4645f2f121e to your computer and use it in GitHub Desktop.

Select an option

Save rindrics/e0c1c2d04a64612a75e6f4645f2f121e to your computer and use it in GitHub Desktop.
---
paths:
/v0/favorite-fish:
post:
operationId: favorite-fish-post
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
fish:
type: object
properties:
name:
type: string
example: マイワシ
description: Name of favorite fish
scientific_name:
type: string
example: Sardinops melanostictus
description: Species name in "Genus species" format
responses:
200:
content:
application/json:
schema:
summary: Echo back posted fish name
type: object
properties:
message:
type: string
example:
message: your favorite fish is マイワシ (Sardinops melanostictus), right?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment