src/Gzero/Cms/Http/Controllers/Api/PublicContentController.php
public function index()
    {
        $results = $this->repository->getManyPublished(new QueryBuilder());
        $results->setPath(apiUrl('public-contents'));

        return new ContentCollection($results);
    }
public function index()
    {
        $results = $this->repository->getManyPublished(new QueryBuilder());
        $results->setPath(apiUrl('public-contents'));

        return new ContentCollection($results);
    }
public function index ( ) { $ results = $ this -> repository -> getManyPublished ( new QueryBuilder ( ) ) ; $ results -> setPath ( apiUrl ( 'public-contents' ) ) ; return new ContentCollection ( $ results ) ; }
Display list of public contents

@SWG\Get(
path="/public-contents",
tags={"content","public"},
summary="List of public contents",
description="List of all publicly accessible contents",
produces={"application/json"},
@SWG\Response(
response=200,
description="Successful operation",
@SWG\Schema(type="array", @SWG\Items(ref="#/definitions/Content")),
),
)

@return ContentCollection
Display list of public contents