mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-11 03:11:50 +00:00
swagger: improve layout
and fix lint
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
_ "github.com/aptly-dev/aptly/deb" // for swagger
|
||||
"github.com/gin-gonic/gin"
|
||||
_ "github.com/aptly-dev/aptly/deb"
|
||||
)
|
||||
|
||||
// @Summary Show packages
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Remote Repository Mirrors
|
||||
# Manage Remote Repository Mirrors
|
||||
<div>
|
||||
Manage mirrors of remote Debian repositories.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Search Packages
|
||||
# Search Package Collection
|
||||
<div>
|
||||
Perform operations on the whole collection of packages in apty database.
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Publish repositories and mirrors
|
||||
# Publish Repositories and Mirrors
|
||||
<div>
|
||||
|
||||
Publish snapshot or local repo as Debian repository which could be served by HTTP/FTP/rsync server. Repository is signed by user's key with GnuPG. Key should be created beforehand (see section GPG Keys below). Published repository could be consumed directly by apt.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Manage repository and mirror Snapshots
|
||||
# Manage Snapshots of Repositories and Mirrors
|
||||
<div>
|
||||
Snapshot is a fixed state of remote repository mirror or local repository. Internally snapshot is list of references to packages. Snapshot is immutable, i.e. it can’t be changed since it has been created. Snapshots could be merged, filtered, individual packages could be pulled, snapshot could be verified for missing dependencies. Finally, snapshots could be published as repositories.
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Aptly Status Information
|
||||
# Status Information
|
||||
<div>
|
||||
Various status information.
|
||||
|
||||
|
||||
@@ -73,6 +73,10 @@
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
#swagger-ui {
|
||||
padding-bottom: 112px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@@ -117,6 +121,17 @@
|
||||
<script src="/docs/swagger-ui-bundle.js"> </script>
|
||||
<script src="/docs/swagger-ui-standalone-preset.js"> </script>
|
||||
<script>
|
||||
function collapseAll() {
|
||||
blocks = document.getElementsByClassName("opblock-tag");
|
||||
for (let i = 0; i < blocks.length; i++) {
|
||||
blocks[i].click();
|
||||
}
|
||||
models = document.getElementsByClassName("models-control");
|
||||
for (let i = 0; i < models.length; i++) {
|
||||
models[i].click();
|
||||
}
|
||||
}
|
||||
|
||||
window.onload = function() {
|
||||
|
||||
const ui = SwaggerUIBundle({
|
||||
@@ -146,6 +161,8 @@ window.onload = function() {
|
||||
}
|
||||
|
||||
window.ui = ui
|
||||
|
||||
setTimeout(collapseAll, 700);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user