Skip to content

Instantly share code, notes, and snippets.

@visomar
Created September 15, 2023 15:43
Show Gist options
  • Save visomar/fc85e7909cac89920e7523454c1bc26d to your computer and use it in GitHub Desktop.
Save visomar/fc85e7909cac89920e7523454c1bc26d to your computer and use it in GitHub Desktop.
API sample
components: {}
info:
title: Hello API
version: "1.0"
openapi: 3.0.1
paths:
/:
delete:
operationId: index
responses:
"200":
content:
'*/*':
schema:
type: string
description: said hello to world successfully.
summary: Say hello.
tags:
- Hello REST API
get:
operationId: index_4
responses:
"200":
content:
'*/*':
schema:
type: string
description: said hello to world successfully.
summary: Say hello.
tags:
- Hello REST API
head:
operationId: index_3
responses:
"200":
content:
'*/*':
schema:
type: string
description: said hello to world successfully.
summary: Say hello.
tags:
- Hello REST API
options:
operationId: index_1
responses:
"200":
content:
'*/*':
schema:
type: string
description: said hello to world successfully.
summary: Say hello.
tags:
- Hello REST API
patch:
operationId: index_5
responses:
"200":
content:
'*/*':
schema:
type: string
description: said hello to world successfully.
summary: Say hello.
tags:
- Hello REST API
post:
operationId: index_6
responses:
"200":
content:
'*/*':
schema:
type: string
description: said hello to world successfully.
summary: Say hello.
tags:
- Hello REST API
put:
operationId: index_2
responses:
"200":
content:
'*/*':
schema:
type: string
description: said hello to world successfully.
summary: Say hello.
tags:
- Hello REST API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment