Skip to content

Commit

Permalink
Merge branch 'master' into issue-28658-add-empty-category-field
Browse files Browse the repository at this point in the history
  • Loading branch information
oidacra authored May 31, 2024
2 parents 12b7744 + f73403e commit d04e798
Show file tree
Hide file tree
Showing 15 changed files with 788 additions and 13 deletions.
30 changes: 30 additions & 0 deletions core-web/libs/sdk/client/src/lib/client/content/content-api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { GetCollection } from './methods/get-collection/get-collection';

import { ClientOptions } from '../sdk-js-client';

/**
* Content classs exposes the content api methods
*
* @export
* @class Content
*/
export class Content {
private requestOptions: ClientOptions;
private serverUrl;

constructor(requestOptions: ClientOptions, serverUrl: string) {
this.requestOptions = requestOptions;
this.serverUrl = serverUrl;
}

/**
* Allows you to build a query to get a collection of an specified content type
*
* @param {string} contentType
* @return {*}
* @memberof Content
*/
getCollection(contentType: string): GetCollection {
return new GetCollection(this.requestOptions, this.serverUrl, contentType);
}
}
Loading

0 comments on commit d04e798

Please sign in to comment.