Skip to content

Commit

Permalink
Merge pull request finos#110 from rikoe/appd-spec-1.0-version
Browse files Browse the repository at this point in the history
Keep generated OpenAPI appd spec 1.0 in versioned folder
  • Loading branch information
rikoe authored Jul 16, 2019
2 parents 8e25e73 + 1c63536 commit 9dcd4d4
Show file tree
Hide file tree
Showing 5 changed files with 455 additions and 81 deletions.
2 changes: 1 addition & 1 deletion src/app-directory/specification/appd.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: 1.0.0
version: 1.1.0-alpha
title: Application Directory specification
description: >
Application Directory specification providing both interface
Expand Down
5 changes: 4 additions & 1 deletion website/core/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ class Footer extends React.Component {

pageUrl(doc, language) {
const baseUrl = this.props.config.baseUrl;
return baseUrl + (language ? `${language}/` : '') + doc;
const defaultVersionShown = this.props.config.defaultVersionShown;
const versionPart = `${defaultVersionShown ? `${defaultVersionShown}/` : ''}`;
const langPart = `${language ? `${language}/` : ''}`;
return `${baseUrl}${versionPart}${langPart}${doc}`;
}

render() {
Expand Down
321 changes: 321 additions & 0 deletions website/pages/1.0/appd-spec.html

Large diffs are not rendered by default.

206 changes: 128 additions & 78 deletions website/pages/appd-spec.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion website/versioned_docs/version-1.0/appd-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ original_id: appd-spec
---
## API

View the [full specification](/appd-spec) in [OpenAPI v3.0](https://www.openapis.org/) format (generated with [ReDoc](https://rebilly.github.io/ReDoc/)).
View the [full specification](/1.0/appd-spec) in [OpenAPI v3.0](https://www.openapis.org/) format (generated with [ReDoc](https://rebilly.github.io/ReDoc/)).

## Endpoints

Expand Down

0 comments on commit 9dcd4d4

Please sign in to comment.