api descriptions
This commit is contained in:
parent
99980028d0
commit
30d07f79f3
6 changed files with 20 additions and 5 deletions
|
|
@ -3,6 +3,7 @@ import {MediaTypeModel} from '../models/MediaTypeModel';
|
|||
export abstract class APIModel {
|
||||
apiName: string;
|
||||
apiUrl: string;
|
||||
apiDescription: string;
|
||||
types: string[];
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ export class OMDbAPI extends APIModel {
|
|||
|
||||
this.plugin = plugin;
|
||||
this.apiName = 'OMDbAPI';
|
||||
this.apiDescription = 'A free API for Movies and Series.';
|
||||
this.apiUrl = 'http://www.omdbapi.com/';
|
||||
this.types = ['movie', 'series'];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ export class TestAPI extends APIModel {
|
|||
constructor() {
|
||||
super();
|
||||
this.apiName = 'testAPI';
|
||||
this.apiDescription = 'The test API used during development.';
|
||||
this.apiUrl = 'www.test.api';
|
||||
this.types = ['test'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue