wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/docs/index.js

Summary

Maintainability
A
0 mins
Test Coverage
import SwaggerUI from 'swagger-ui';
import 'swagger-ui/dist/swagger-ui.css';

import spec from '../specs/openapi.json';

const ui = SwaggerUI( {
    spec,
    dom_id: '#swagger', // eslint-disable-line camelcase
    deepLinking: true
} );

ui.initOAuth( {
    appName: 'Wikibase REST API',
    // See https://demo.identityserver.io/ for configuration details.
    clientId: 'implicit'
} );