add endpoint to fetch packages
This commit is contained in:
@@ -11,6 +11,15 @@ export class Manifests {
|
||||
default(@body body: ProblemDetails) {}
|
||||
}
|
||||
|
||||
@endpoint({ method: 'GET', path: '/manifests/packages' })
|
||||
export class Packages {
|
||||
@response({ status: 200 })
|
||||
response(@body body: PackagesResponse) {}
|
||||
|
||||
@defaultResponse
|
||||
default(@body body: ProblemDetails) {}
|
||||
}
|
||||
|
||||
export type Manifest =
|
||||
| IManifestSection
|
||||
| IManifestPropertyEditorUI
|
||||
@@ -32,6 +41,16 @@ export interface ManifestsResponse {
|
||||
manifests: Manifest[];
|
||||
}
|
||||
|
||||
export interface PackagesResponse {
|
||||
packages: Package[];
|
||||
}
|
||||
|
||||
export interface Package {
|
||||
name: string;
|
||||
alias: string;
|
||||
version: string;
|
||||
}
|
||||
|
||||
export interface IManifest {
|
||||
type: string;
|
||||
alias: string;
|
||||
|
||||
Reference in New Issue
Block a user