<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hey Koha developers!</p>
    <p>I would like to ask your opinion on endpoint structure for many
      patron-related api endpoints. We have two options for the path
      structure, let's say for accountlines:</p>
    <p><font size="-1"><b>/patron/{patron_id)/account</b> (currently in
        use)</font><br>
    </p>
    <p>OR</p>
    <p><font size="-1"><b>/account</b> (not implement, (perhaps some
        other name would be better))</font></p>
    <p>I understand why the first one makes sense and it is pretty
      straight-forward to use when you are dealing with a specific
      patron.</p>
    <p>But, the problem with this choice is that we lose the ability to
      query other sets of accountlines data. For example, how would you
      get a list of accountlines from today? There may not currently be
      need for such exact query, but it should be possible if we want a
      more complete API.<br>
    </p>
    <p>My question is, when creating new endpoints that are closely tied
      to another object, such as accountlines to patron, do we also want
      to support the full accountlines object via its own endpoint? It
      would make sense for listing different sets of accountlines data.<br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Lari Taskula
Software Developer, Koha-Suomi Oy
CEO, Hypernova Oy
+358449857337
Kauppakatu 25 C 409
80100 Joensuu, Finland</pre>
  </body>
</html>