-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a dedicated section in documentation on REST API
- Loading branch information
Showing
4 changed files
with
37 additions
and
149 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,27 @@ | ||
# REST API | ||
|
||
Below is an interactive view of Conda-Store's OpenAPI specification. | ||
|
||
<!-- client-rendered openapi UI copied from FastAPI --> | ||
|
||
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/swagger-ui-bundle.js"></script> | ||
<!-- `SwaggerUIBundle` is now available on the page --> | ||
|
||
<!-- render the ui here --> | ||
<div id="openapi-ui"></div> | ||
|
||
<script> | ||
const ui = SwaggerUIBundle({ | ||
url: './_static/openapi.json', | ||
dom_id: '#openapi-ui', | ||
presets: [ | ||
SwaggerUIBundle.presets.apis, | ||
SwaggerUIBundle.SwaggerUIStandalonePreset | ||
], | ||
layout: "BaseLayout", | ||
deepLinking: true, | ||
showExtensions: true, | ||
showCommonExtensions: true, | ||
}); | ||
</script> |
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 |
---|---|---|
|
@@ -100,6 +100,7 @@ Contents | |
user_guide | ||
administration | ||
contributing | ||
api | ||
|
||
Indices and tables | ||
================== | ||
|