mirror of
https://github.com/bitwarden/docs
synced 2025-12-06 01:33:19 +00:00
75 lines
2.8 KiB
HTML
75 lines
2.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Bitwarden API Documentation</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link
|
|
href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,300italic,400italic,600italic|Source+Code+Pro:300,600|Titillium+Web:400,600,700"
|
|
rel="stylesheet">
|
|
<link rel="stylesheet" type="text/css"
|
|
href="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.24.2/swagger-ui.css">
|
|
<link rel="stylesheet" type="text/css" href="./css/bitwarden.css">
|
|
</head>
|
|
|
|
<body>
|
|
<div id="swagger-ui"></div>
|
|
|
|
<script>
|
|
// Workaround for https://github.com/swagger-api/swagger-editor/issues/1371
|
|
if (window.navigator.userAgent.indexOf('Edge') > -1) {
|
|
window.fetch = undefined;
|
|
}
|
|
</script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.24.2/swagger-ui-bundle.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.24.2/swagger-ui-standalone-preset.js"></script>
|
|
<script>
|
|
window.onload = () => {
|
|
const ui = SwaggerUIBundle({
|
|
dom_id: '#swagger-ui',
|
|
presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset],
|
|
layout: 'StandaloneLayout',
|
|
urls: [
|
|
{
|
|
url: './specs/public/swagger.json',
|
|
name: 'Bitwarden Public API'
|
|
},
|
|
],
|
|
deepLinking: false,
|
|
displayOperationId: false,
|
|
defaultModelsExpandDepth: 1,
|
|
defaultModelExpandDepth: 1,
|
|
defaultModelRendering: 'example',
|
|
displayRequestDuration: false,
|
|
docExpansion: 'list',
|
|
showExtensions: false,
|
|
showCommonExtensions: false,
|
|
supportedSubmitMethods: ['get', 'put', 'post', 'delete'],
|
|
validatorUrl: null,
|
|
});
|
|
|
|
ui.initOAuth({
|
|
clientId: 'accountType.id',
|
|
clientSecret: 'secretKey',
|
|
scopeSeperator: ' ',
|
|
useBasicAuthenticationWithAccessCodeGrant: false,
|
|
});
|
|
}
|
|
</script>
|
|
<script>
|
|
(function (i, s, o, g, r, a, m) {
|
|
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
|
|
(i[r].q = i[r].q || []).push(arguments)
|
|
}, i[r].l = 1 * new Date(); a = s.createElement(o),
|
|
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
|
|
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
|
|
|
|
ga('create', 'UA-81915606-4', 'auto');
|
|
ga('send', 'pageview');
|
|
</script>
|
|
</body>
|
|
|
|
</html> |