No description, website, or topics provided.
Scala
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
conf
project
test
.gitignore
.travis.yml
LICENSE
README.md
repository.yaml
scalastyle-config.xml

README.md

GMP-BULK

Guaranteed Minimum Pension Bulk micro service

Build Status Download

##API

PATH Supported Methods Description
/gmp/bulk-data POST Post a bulk calculation

POST /gmp/bulk-data

Post multiple validated calculations to be evaluated.

Responds with

Status Description
400 Bad Request
200 Successful Post of a bulk calculation request
Example of usage

Response body

              {
                "uploadReference" : "UPLOAD1234",
                "email" : "test@test.com",
                "reference" : "REF1234",
                "calculationRequests" : [
                  {
                    "lineId": 1,
                    "validCalculation": {
                      "scon" : "S2730000B",
                      "nino" : "nino",
                      "surname" : "surname",
                      "firstForename": "firstname",
                      "memberReference": "MEMREF123",
                      "calctype" : 1,
                      "revaluationDate": "2018-01-01",
                      "revaluationRate": 2,
                      "requestEarnings": 1,
                      "dualCalc" : 1,
                      "terminationDate" : "2016-07-07"
                    }
                  },
                  {
                    "lineId" : 2,
                    "validationError" : "No scon supplied"
                  },
                  {
                    "lineId" : 3,
                    "validCalculation": {
                      "scon" : "S2730000B",
                      "nino" : "nino",
                      "surname" : "lastname",
                      "firstForename": "firstname",
                      "calctype" : 0
                    }
                  },
                  {
                    "lineId" : 4,
                    "validationError" : "Invalid scon format"
                  }]
              }