Start working on API documentation and token auth (references #5)

This commit is contained in:
Bernd Bestel
2018-04-20 23:09:18 +02:00
parent 7be35a90c1
commit 9bd6aac09c
9 changed files with 491 additions and 5 deletions

18
public/viewjs/apidoc.js Normal file
View File

@@ -0,0 +1,18 @@
$(function ()
{
const swaggerUi = SwaggerUIBundle({
url: U('/api/get-open-api-specification'),
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: 'StandaloneLayout'
});
window.ui = swaggerUi;
});