Skip to content

Commit 12c2f96

Browse files
authored
Merge pull request #3 from speakeasy-api/ritza/extending-content
Extend content and spec
2 parents 20c6e2a + b1c8229 commit 12c2f96

File tree

19 files changed

+5572
-749
lines changed

19 files changed

+5572
-749
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
generation/
1+
generation/
2+
code/
3+
node_modules/

README.md

Lines changed: 1533 additions & 709 deletions
Large diffs are not rendered by default.

bun.lockb

7.45 KB
Binary file not shown.

development-notes.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# DEVELOPMENT NOTES (REMOVE BEFORE PUBLISHING)
2+
3+
- I believe this should be an open source repo that we can use to showcase the docs and example SDKs generated from our example openapi document. This will allow things to be co-located (we can locate them separately but I think we will lose some coherency with that approach), benefit from community updates and improvements.
4+
- I am building a `speakeasy` example openapi document as an example document similar to the petstore from swagger. The speakeasy it refers to is a bar, so everything is themed around that. I think this will be a good way to showcase the documentation and SDKs.
5+
- I imagine the `SDK Generation` sections to actually be some sort of expandable section that can be toggled open and closed. This would allow the user to see the docs related to SDK Generation without it taking up too much space on the page. I also imagine we will potentially show examples in all the supported languages, via tabs or something similar.
6+
7+
## TODOs
8+
9+
- TODO: Go through and update all examples of yaml and generated code once full documentation and example spec is complete.
10+
- TODO: Ensure we refer to API, Endpoint, etc consistently throughout the documentation.
11+
- TODO: Determine the best way to link back to the generator? Should we talk directly about it in this documentation, or leave it to links and/or expandable sections that go into more detail?
12+
- ~~TODO~~DONE: make the difference between OpenAPI references and JSON Schema references clear. I think this is a common point of confusion for people.
13+
- TODO: do we want to add comments into our examples explaining them more?
14+
- TODO: in some cases the smart bear docs document different sections of the spec in a lot of detail, almost as "how-to" guides ie. <https://swagger.io/docs/specification/callbacks/> I think we should have the equivelant but should that be done inline in this documentation or as separate linked pages from here? List of potential candidates:
15+
- callbacks
16+
- webhooks
17+
- parameters (have implemented this in a lot of detail in line in this documentation but should we break it out into a separate page?)
18+
- components
19+
- references
20+
- ???
21+
22+
## OPEN QUESTIONS (REMOVE BEFORE PUBLISHING)
23+
24+
- Do we want to be able to link to rows in the tables? If so we can add ids for each field name like so: <https://stackoverflow.com/questions/68983152/how-do-i-create-a-link-to-a-certain-word-in-markdown>

example/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# The Speakeasy Bar API
2+
3+
## Introduction
4+
5+
TODO: Introduction to the Speakeasy Bar API example
6+
7+
## Installing The Speakeasy Bar API
8+
9+
TODO: Installing The Speakeasy Bar API
10+
11+
## Overview Of The Speakeasy Bar API
12+
13+
TODO: Overview Of The Speakeasy Bar API, discuss endpoints and components one by one with inline snippets.

glossary/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# OpenAPI Glossary
2+
3+
TODO: Write short definitions for OpenAPI terms, link to our reference docs. Examples:
4+
5+
## OpenAPI specification
6+
7+
## OpenAPI document
8+
9+
## JSON-Schema
10+
11+
## SDK generator

guides/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# OpenAPI Guides
2+
3+
## Introduction
4+
5+
TODO: OpenAPI Guides Introduction
6+
7+
## Guides
8+
9+
TODO: Guides, categorised/structured according to e.g. documentation, SDKs, CI/CD, etc.
10+
11+
Some examples:
12+
13+
- How to add a webhook using OpenAPI.
14+
- How to add a list as a path parameter in OpenAPI.
15+
- Add SDK generation to your CI/CD workflows.
16+
- Lint and edit documentation strings in your OpenAPI documents.
17+
- How to generate API documentation using Redoc.
18+
- How to add Redoc-generated OpenAPI documentation to Docusaurus.
19+
- How to validate your OpenAPI document as part of CI/CD.
20+
- etc.

0 commit comments

Comments
 (0)