[Koha-bugs] [Bug 24302] Add a way to specify nested objects to embed in OpenAPI

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 8 16:30:53 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24302

Tomás Cohen Arazi <tomascohen at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Text to go in the|                            |This development introduces
      release notes|                            |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.
         QA Contact|                            |martin.renvoize at ptfs-europe
                   |                            |.com

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list