Automated patron blocks (v0.1)

http://github.com/org/folio/mod-patron-blocks

Table of contents

Diagnostic API for retreiving internal UserSummary objects

User summary API

/user-summary/{userId}

GET /user-summary/{userId}

GET /user-summary/{userId}
URI Parameters
  • userId: required (string)

Response 200

Body

Media type: application/json

Example:

{
  "id": "4879f476-2b5c-4b8d-9a1b-48d200e61517",
  "userId": "16b5c87a-5fd6-41d5-b154-2e408f69a8ee",
  "_version": 1,
  "openLoans": [
    {
      "loanId": "c929faa8-f34b-4086-a193-45a25cbafa95",
      "dueDate": "2020-01-01T23:23:23.000Z",
      "recall": false,
      "itemLost": false
    }
  ],
  "openFeesFines": [
    {
      "feeFineId": "83eded7c-d480-4f36-bfca-6ccfaf5b013b",
      "balance": 0,
      "loanId": "f941762e-abad-4627-84e9-1a83de4cdc90",
      "feeFineTypeId": "48aa663a-2ba4-4917-a193-ebe0c5e7caf5"
    }
  ]
}

Response 400

Invalid user ID in request

Body

Media type: text/plain

Type: any

Example:

Invalid user ID: "2a424823-588a-45ee-9441-a6384b6614b2-invalid"

Response 404

UserSummary not found

Body

Media type: text/plain

Type: any

Example:

UserSummary for user ID 2a424823-588a-45ee-9441-a6384b6614b1 not found

Response 500

Internal server error, e.g. due to misconfiguration

Body

Media type: text/plain

Type: any

Example:

Internal server error