GET api/Content/Search/{languageId}?id={id}&searchterms={searchterms}&category={category}&contenttype={contenttype}&onlyfavorites={onlyfavorites}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
languageId

integer

Required

id

string

None.

searchterms

string

Default value is

category

integer

Default value is -1

contenttype

integer

Default value is -1

onlyfavorites

integer

Default value is -1

Body Parameters

None.

Response Information

Resource Description

Collection of ContentItemDto
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

None.

Subtitle

string

None.

Summary

string

None.

Body

string

None.

HeaderImageUrl

string

None.

LanguageId

integer

None.

Weight

integer

None.

Source

string

None.

Author

string

None.

CreatedOn

date

None.

UpdatedOn

date

None.

Active

boolean

None.

Approved

boolean

None.

Category

ContentItemCategoryDto

None.

ContentItemType

ContentItemTypeDto

None.

Attachments

Collection of AttachmentDto

None.

Keywords

Collection of string

None.

Quiz

QuizDto

None.

IsSymptom

boolean

None.

PregnancyWeeks

Collection of PregnancyWeekDto

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'WebApi.DTO.ContentItemDto'. Path '[0].Quiz.AssociatedInternalLinks'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'WebApi.DTO.ContentItemDto'. Path '[0].Quiz.AssociatedInternalLinks'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'WebApi.DTO.PregnancyWeekDto' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'WebApi.DTO.PregnancyWeekDto' contains cycles and cannot be serialized if reference tracking is disabled.