Loan Rules Storage (v1.0)

http://localhost:9130

Table of contents

Loan Rules Storage API

Storage for loan rules

/loan-rules-storage

GET /loan-rules-storage

Get the loan rules

GET /loan-rules-storage

Response 200

Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Loan Rules Schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "loanRulesAsTextFile": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "required": [
    "loanRulesAsTextFile"
  ]
}

Example:

{
  "loanRulesAsTextFile": "fallback-policy: ffffffff-2222-4b5e-a7bd-064b8d177231\\nm aaaaaaaa-1111-4b5e-a7bd-064b8d177231: ffffffff-3333-4b5e-a7bd-064b8d177231\\n    g cccccccc-1111-4b5e-a7bd-064b8d177231: ffffffff-4444-4b5e-a7bd-064b8d177231\n"
}

Response 500

Internal server error

Body

Media type: text/plain

Type: any

Example:

Internal server error

PUT /loan-rules-storage

Set the loan rules

PUT /loan-rules-storage
Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Loan Rules Schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "loanRulesAsTextFile": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "required": [
    "loanRulesAsTextFile"
  ]
}

Example:

{
  "loanRulesAsTextFile": "fallback-policy: ffffffff-2222-4b5e-a7bd-064b8d177231\\nm aaaaaaaa-1111-4b5e-a7bd-064b8d177231: ffffffff-3333-4b5e-a7bd-064b8d177231\\n    g cccccccc-1111-4b5e-a7bd-064b8d177231: ffffffff-4444-4b5e-a7bd-064b8d177231\n"
}

Response 204

Loan rules have been saved.

Response 500

Internal server error

Body

Media type: text/plain

Type: any

Example:

Internal server error