forked from vlucas/frisby
-
Notifications
You must be signed in to change notification settings - Fork 0
API Specification
H1Gdev edited this page Dec 3, 2025
·
11 revisions
-
Swagger Editor
- Editor
- GitHub
-
Swagger UI
- Documentation Visualizer
- GitHub
-
Swagger Codegen
- Code Generator
- GitHub
- RESTful APIs (REST APIs)
- REST(REpresentational State Transfer)
OAS is versioned using Semantic Versioning 2.0.0.
Minimal openapi.yaml
openapi: 3.0.3
info:
title: Test
version: 0.1.0
paths:
/test:
get:
responses:
default:
description: Default response.Tips
- Only
parameters,requestBodyandresponsessupport multiple examples.
- Scalar
- Sequence
- Mapping
- Block Style
- Flow Style
# Empty Sequences
[]
# Empty Mappings
{}Untagged
Scalar: 100Explicit
Scalar: !<tag:yaml.org,2002:int> 100
# Shorthands
Scalar: !!int 100Scalar
# Scalar
Scalar: &name
100Anchor Scalar Node 100
Sequence
# Sequence
Sequence: &name
- 100
- 200
- 300Anchor Sequence Node [100, 200, 300]
Mapping
# Mapping
Mapping: &name
a: 100
b: 200
c: 300Anchor Mapping Node { a: 100, b: 200, c: 300 }
Alias: *nameMerge one map
Alias:
<<: *name
d: 400Alias is { a: 100, b: 200, c: 300, d: 400 }
Merge multiple maps
Mapping: &name2
d: 400
e: 500
f: 600
Alias:
<<: *name
<<: *name2Alias is { a: 100, b: 200, c: 300, d: 400, e: 500, f: 600 }
Override
Alias:
<<: *name
a: 800Alias is { a: 800, b: 200, c: 300 }
- bundle
- build-docs
- lint
-
<nodejs-server>
- index.js
- api
- openapi.yaml
- controllers
-
Default.js
- It seems to be separated by tag name.
-
Default.js
- service
-
DefaultService.js
- Implement on this code.
-
DefaultService.js
- node_modules
- Event-driven APIs
RESTful API Modeling Language
- server maintenance