http://localhost:9130
Anonymize loans API
POST /anonymize-storage-loans
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Request schema for anonymize loans",
"type": "object",
"properties": {
"loanIds": {
"description": "Loan ids to be anonymized",
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}
Loans that have been anonymized
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Response schema for anonymize loans request",
"type": "object",
"properties": {
"anonymizedLoans": {
"description": "Successfully anonymized loan ids",
"type": "array",
"items": {
"type": "string"
}
},
"notAnonymizedLoans": {
"type": "array",
"items": {
"description": "Collection of loans",
"type": "object",
"properties": {
"reason": {
"description": "Reason of failure",
"type": "string"
},
"loanIds": {
"description": "List of loan IDs that have not been anonymized",
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
Validation errors
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "errors.schema",
"description": "A set of errors",
"type": "object",
"properties": {
"errors": {
"description": "List of errors",
"id": "errors",
"type": "array",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "error.schema",
"description": "An error",
"properties": {
"message": {
"type": "string",
"description": "Error message text"
},
"type": {
"type": "string",
"description": "Error message type"
},
"code": {
"type": "string",
"description": "Error message code"
},
"parameters": {
"description": "Error message parameters",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "parameters.schema",
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
},
"required": [
"message"
]
}
},
"total_records": {
"description": "Total number of errors",
"type": "integer"
}
}
}
Example:
{
"errors": [
{
"message": "may not be null",
"type": "1",
"code": "-1",
"parameters": [
{
"key": "moduleTo",
"value": "null"
}
]
}
]
}
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator