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