-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace OCS API sections with OpenAPI documentation
Signed-off-by: jld3103 <[email protected]>
- Loading branch information
1 parent
1a4c0bb
commit 41ce5ab
Showing
18 changed files
with
16,556 additions
and
1,082 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "build/openapi-extractor"] | ||
path = build/openapi-extractor | ||
url = [email protected]:nextcloud-gmbh/openapi-extractor.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/specs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
|
||
mkdir -p specs | ||
for path in core apps/cloud_federation_api apps/dashboard apps/dav apps/files_sharing apps/oauth2 apps/provisioning_api apps/settings apps/theming apps/user_status apps/weather_status; do | ||
./openapi-extractor/openapi-extractor "server/$path" "specs/$(echo $path | rev | cut -d "/" -f -1 | rev).json" | ||
done | ||
|
||
./openapi-extractor/merge-specs \ | ||
--core specs/core.json \ | ||
--merged ../developer_manual/_static/openapi.json \ | ||
specs/cloud_federation_api.json \ | ||
specs/dashboard.json \ | ||
specs/dav.json \ | ||
specs/files_sharing.json \ | ||
specs/oauth2.json \ | ||
specs/provisioning_api.json \ | ||
specs/settings.json \ | ||
specs/theming.json \ | ||
specs/user_status.json \ | ||
specs/weather_status.json |
Submodule openapi-extractor
added at
18574a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<html> | ||
<head> | ||
<title>OCS API</title> | ||
<script src="https://unpkg.com/@stoplight/elements/web-components.min.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/@stoplight/elements/styles.min.css"> | ||
</head> | ||
<body> | ||
<elements-api apiDescriptionUrl="openapi.json" router="hash" hideTryIt="true" logo="logo-blue.png"></elements-api> | ||
</body> | ||
</html> |
Oops, something went wrong.