Affects Version/s: None
Component/s: Headless CMS
As a consumer of the structured content API I want to consume only contents that are in approved status, so work in progress, content that needs approval or are scheduled are not shown until they are ready.
The consumer of this API will be able to:
- The list retrieved by the structuredContent collection should only retrieve contents in approved status.
The list of structuredContent should only include elements if the current user has permissions to view the whole list, otherwise the list returned will be empty. If a structured content is requested and the current user doesn't have permission to view it, a 404 error should be returned.
The API should support at least Plain JSON, JSON-LD and HAL as output formats.
The consumer developer should be able to control which linked resources are embedded so that they can be retrieved along with a content in a single request.
The consumer developer can specify which fields are desired, to reduce the data transfer when the API is used from a consumer sensitive to it.