UNPKG

1.59 kBPlain TextView Raw
1import { Interfaces } from '@lxdhub/common';
2import { ApiModelProperty } from '@nestjs/swagger';
3
4export class APILinks implements Interfaces.APILinks {
5 /**
6 * The homepage url of the package
7 */
8 @ApiModelProperty({ description: 'The homepage url of the package' })
9 homepage: string;
10 /**
11 * The bug report url of the package
12 */
13 @ApiModelProperty({ description: 'The bug report url of the package' })
14 bug_report: string;
15 /**
16 * The repository url of the package
17 */
18 @ApiModelProperty({ description: 'The repository url of the package' })
19 repository: string;
20 /**
21 * The api documentation url
22 */
23 @ApiModelProperty({ description: ' The api documentation url' })
24 docs: string;
25}
26
27export class APIDto implements Interfaces.APIDto {
28 /**
29 * The version of the API
30 */
31 @ApiModelProperty({ description: 'The version of the API' })
32 api_version: string;
33 /**
34 * The version of the npm package of the running API
35 */
36 @ApiModelProperty({ description: 'The version of the npm package of the running API' })
37 package_version: string;
38 /**
39 * The name of the npm package
40 */
41 @ApiModelProperty({ description: 'The name of the npm package' })
42 name: string;
43 /**
44 * The description of the npm package
45 */
46 @ApiModelProperty({ description: 'The description of the npm package' })
47 description: string;
48 /**
49 * Further links related to the API
50 */
51 @ApiModelProperty({ description: 'Further links related to the API' })
52 _links: APILinks;
53}