mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 11:06:36 +00:00
Start working on API documentation and token auth (references #5)
This commit is contained in:
18
public/viewjs/apidoc.js
Normal file
18
public/viewjs/apidoc.js
Normal 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;
|
||||
});
|
Reference in New Issue
Block a user