Circulation event handlers (v0.1)

http://localhost:9130

Table of contents

Circulation Event Handlers Endpoints

API to handle events

/circulation/handlers/

POST /circulation/handlers//loan-related-fee-fine-closed

Handle fee/fine record with loan closed event

POST /circulation/handlers//loan-related-fee-fine-closed
Body

Media type: application/json

Type:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "description": "Fee/fine with loan is closed event",
  "properties": {
    "feeFineId": {
      "description": "Fee/fine id that was closed",
      "type": "string",
      "$ref": "../raml-util/schemas/uuid.schema"
    },
    "loanId": {
      "description": "Associated loan id",
      "type": "string",
      "$ref": "../raml-util/schemas/uuid.schema"
    }
  },
  "required": [
    "loanId"
  ]
}

Example:

{
  "loanId": "89105c06-dbdb-4aa0-9695-d4d19c733270",
  "feeFineId": "4c6e1fb0-2ef1-4666-bd15-f9190ff89060"
}

Response 204

Event handled successfully