View Source
Class ByIdContentApiController
Inheritance
System.Object
Assembly: Umbraco.Cms.Api.Delivery.dll
Syntax
public class ByIdContentApiController : ContentApiItemControllerBase
Constructors
View Source
ByIdContentApiController(IApiPublishedContentCache, IApiContentResponseBuilder, IPublicAccessService)
Declaration
public ByIdContentApiController(IApiPublishedContentCache apiPublishedContentCache, IApiContentResponseBuilder apiContentResponseBuilder, IPublicAccessService publicAccessService)
Parameters
Type |
Name |
Description |
IApiPublishedContentCache |
apiPublishedContentCache |
|
IApiContentResponseBuilder |
apiContentResponseBuilder |
|
IPublicAccessService |
publicAccessService |
|
View Source
ByIdContentApiController(IApiPublishedContentCache, IApiContentResponseBuilder, IPublicAccessService, IRequestMemberAccessService)
Declaration
public ByIdContentApiController(IApiPublishedContentCache apiPublishedContentCache, IApiContentResponseBuilder apiContentResponseBuilder, IPublicAccessService publicAccessService, IRequestMemberAccessService requestMemberAccessService)
Parameters
Type |
Name |
Description |
IApiPublishedContentCache |
apiPublishedContentCache |
|
IApiContentResponseBuilder |
apiContentResponseBuilder |
|
IPublicAccessService |
publicAccessService |
|
IRequestMemberAccessService |
requestMemberAccessService |
|
View Source
ByIdContentApiController(IApiPublishedContentCache, IApiContentResponseBuilder, IRequestMemberAccessService)
Declaration
public ByIdContentApiController(IApiPublishedContentCache apiPublishedContentCache, IApiContentResponseBuilder apiContentResponseBuilder, IRequestMemberAccessService requestMemberAccessService)
Parameters
Type |
Name |
Description |
IApiPublishedContentCache |
apiPublishedContentCache |
|
IApiContentResponseBuilder |
apiContentResponseBuilder |
|
IRequestMemberAccessService |
requestMemberAccessService |
|
Methods
View Source
ById(Guid)
Gets a content item by id.
Declaration
public async Task<IActionResult> ById(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
The unique identifier of the content item.
|
Returns
Type |
Description |
Task<IActionResult> |
The content item or not found result.
|