-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into issue-28658-add-empty-category-field
- Loading branch information
Showing
15 changed files
with
788 additions
and
13 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
core-web/libs/sdk/client/src/lib/client/content/content-api.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
Oops, something went wrong.