Skip to content

[Question] Add Hydra elements #679

@Garfield-fr

Description

@Garfield-fr

Hi,

I would like to add a new hydra entry (hydra:facet) on my api result. Do you have an example to implement this ?

Example:

{
  "@context": "/contexts/Book",
  "@id": "/books",
  "@type": "hydra:Collection",
  "hydra:facet": [
      {
          "Facets on ma collection"
      }
  ],
  "hydra:member": [
    {
      "@id": "/books/1",
      "@type": "http://schema.org/Book",
      "name": "My awesome book"
    },
    ...
  ],
  "hydra:totalItems": 50,
  ...
}

Thank's

Bertrand

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions