redoc/lib/components/PathsList/paths-list.js

21 lines
473 B
JavaScript
Raw Normal View History

2015-10-08 23:21:51 +03:00
'use strict';
import {RedocComponent, BaseComponent} from '../base';
2015-10-08 23:21:51 +03:00
import {MethodsList} from '../MethodsList/methods-list';
@RedocComponent({
selector: 'paths-list',
2015-10-08 23:21:51 +03:00
templateUrl: './lib/components/PathsList/paths-list.html',
directives: [MethodsList]
2015-10-08 23:21:51 +03:00
})
export class PathsList extends BaseComponent {
2015-10-08 23:21:51 +03:00
constructor(schemaMgr) {
super(schemaMgr);
2015-10-08 23:21:51 +03:00
}
prepareModel() {
2015-10-08 23:21:51 +03:00
this.data = {};
this.data.paths = Object.keys(this.componentSchema.paths);
2015-10-08 23:21:51 +03:00
}
}