Skip to content

Commit 445048b

Browse files
committed
Content for Documentation
1 parent c0ff081 commit 445048b

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

Documentation.app/Contents/MacOS/Generation examples.playground/Pages/Documentation.xcplaygroundpage/Contents.swift

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,35 @@
77
/*:
88
# Documentation
99

10+
Bow OpenAPI leverages the documentation added in the specification so that you have it available as inline docs in Xcode. For instance, consider the following example:
11+
12+
```yaml
13+
openapi: "3.0.0"
14+
info:
15+
title: My Store
16+
version: "1.0.0"
17+
paths:
18+
/products:
19+
get:
20+
tags:
21+
- Product
22+
operationId: getProducts
23+
description: Obtains all products sold by the store.
24+
parameters:
25+
- name: sortBy
26+
in: query
27+
required: true
28+
description: Sorting criteria.
29+
schema:
30+
$ref: '#/components/schemas/SortBy'
31+
responses:
32+
'200':
33+
description: All products in the store.
34+
content:
35+
application/json:
36+
schema:
37+
$ref: '#/components/schemas/Products'
38+
```
39+
40+
The generator will take all the metadata in the fields named `description` and will use that information for documentation of the corresponding artifacts.
1041
*/

Documentation.app/Contents/MacOS/Generation examples.playground/contents.xcplayground

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<page name='Grouping endpoints'/>
66
<page name='Data types'/>
77
<page name='Parameters'/>
8-
<page name='Headers'/>
98
<page name='Documentation'/>
109
<page name='Limitations'/>
1110
</pages>

0 commit comments

Comments
 (0)