Skip to content

Commit 455f288

Browse files
Configure paths for local serving and GitHub Pages deployment
1 parent a427788 commit 455f288

File tree

122 files changed

+2692
-144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+2692
-144
lines changed

.nojekyll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+

API.docc/API.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,23 @@
1-
# REST API Documentation
1+
# SwaggerPetstoreOpenAPI30 REST API Documentation
22

3-
A comprehensive REST API example documented with DocC.
3+
A comprehensive REST API example documented with DocC, generated from the standard Swagger Pet Store OpenAPI specification using the `openapi-to-symbolgraph` tool.
44

55
## Overview
66

7-
This documentation is generated from an OpenAPI specification, showcasing how REST APIs can be documented using DocC, the documentation compiler familiar to Swift developers.
8-
9-
## Key Features
10-
11-
- Auto-generated documentation from OpenAPI schemas
12-
- Integration with Swift DocC's navigation and search
13-
- Standard format for HTTP endpoints and request/response schemas
14-
- Consistent developer experience between Swift API docs and REST API docs
7+
This documentation showcases how REST APIs defined in OpenAPI can be converted to SymbolGraph files and rendered using DocC, providing a familiar documentation experience for Swift developers.
158

169
## Topics
1710

18-
### Endpoints
11+
### Pet Operations
1912

20-
- ``/REST-API-Example/API/listUsers``
21-
- ``/REST-API-Example/API/getUserById``
22-
- ``/REST-API-Example/API/createUser``
13+
Browse operations related to pets in the store. (See sidebar for links)
2314

2415
### Data Models
2516

26-
- ``/REST-API-Example/API/User``
17+
Explore the data structures used in the API. (See sidebar for links)
2718

2819
### Getting Started
2920

21+
Learn how to use this tool.
22+
3023
- <doc:Getting-Started>

Examples/api.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
openapi: 3.0.0
2+
info:
3+
title: Sample API
4+
version: 1.0.0
5+
description: A sample API for testing OpenAPI to DocC conversion
6+
paths:
7+
/users:
8+
get:
9+
summary: Get all users
10+
description: Returns a list of users
11+
responses:
12+
'200':
13+
description: A list of users
14+
content:
15+
application/json:
16+
schema:
17+
type: array
18+
items:
19+
$ref: '#/components/schemas/User'
20+
components:
21+
schemas:
22+
User:
23+
type: object
24+
properties:
25+
id:
26+
type: integer
27+
format: int64
28+
name:
29+
type: string
30+
email:
31+
type: string
32+
format: email
33+
required:
34+
- id
35+
- name
36+
- email

0 commit comments

Comments
 (0)