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