Skip to content

Commit

Permalink
skipWorkspaces query param added to APIs & Products services (#2366)
Browse files Browse the repository at this point in the history
  • Loading branch information
JMach1 authored Jan 10, 2024
1 parent c1b53a5 commit acfa018
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/apiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ export class ApiService {
query = Utils.addQueryParameter(query, `$filter=` + odataFilterEntries.join(" and "));
}

query = Utils.addQueryParameter(query, "skipWorkspaces=true");

const pageOfApis = await this.mapiClient.get<Page<ApiContract>>(query, [await this.mapiClient.getPortalHeader("getApis")]);

const page = new Page<Api>();
Expand Down
2 changes: 2 additions & 0 deletions src/services/productService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ export class ProductService {
query = Utils.addQueryParameter(query, `$filter=(contains(properties/displayName,'${encodeURIComponent(filter.pattern)}'))`);
}

query = Utils.addQueryParameter(query, "skipWorkspaces=true");

const page = await this.mapiClient.get<Page<ProductContract>>(query, [await this.mapiClient.getPortalHeader("getProductsPage")]);
const result = new Page<Product>();
result.count = page.count;
Expand Down

0 comments on commit acfa018

Please sign in to comment.