Skip to content

Commit 21194a0

Browse files
committed
uppercase namespace in API
1 parent 5cb0ed0 commit 21194a0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/api/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class AtelierAPI {
4343
public readonly wsOrFile?: string | vscode.Uri;
4444

4545
public get ns(): string {
46-
return this.namespace || this._config.ns;
46+
return (this.namespace || this._config.ns).toUpperCase();
4747
}
4848

4949
public get config(): ConnectionSettings {
@@ -496,4 +496,12 @@ export class AtelierAPI {
496496
};
497497
return this.request(1, "GET", `%SYS/jobs`, null, params);
498498
}
499+
500+
// v1+
501+
public getCSPApps(detail = false): Promise<Atelier.Response> {
502+
const params = {
503+
detail: detail ? 1 : 0,
504+
};
505+
return this.request(1, "GET", `%SYS/cspapps/${this.ns || ""}`, null, params);
506+
}
499507
}

0 commit comments

Comments
 (0)