Text to go in the release notes:
|
This development introduces a way to define embeddable objects on API routes. On the path specs, they will be specified using dot notation for nested embeddings:
"x-koha-embed": [
'biblio',
'biblio.items',
'fund'
]
The consumer will need to add a header to the request, specifying the things they want to embed using comma-separated values like this:
x-koha-embed: 'biblio,fund'
This header will be validated against the endpoint spec and an error code will be returned if the request is not appropriate.
|