LandRegistry/pdf-generator-api-public-version

Name: pdf-generator-api-public-version

Owner: HM Land Registry

Description: This is the repository for the public version of HM Land Registry's PDF generator used by Find property information.

Created: 2017-10-26 14:02:53.0

Updated: 2017-10-30 15:21:49.0

Pushed: 2017-10-26 14:05:27.0

Homepage:

Size: 309

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

PDF Generator API

Dependencies

None

Interface Specification
Create PDF

Request: POST /v1/pdf

It takes a json set that is what is used to build the summary. Depending on the title it could have multiple proprietors, lenders and addresses for each. If the receipt data is not sent a receipt will not be constructed.

Minimal json required:


"proprietors": [{
    "name": "Jayme Bailey",
    "addresses": [{
        "lines": ["71 Stemson Avenue", "Exeter", "EX4 8FY"]
    }],
    "name_extra_info": ""
}],
"last_changed": "2013-12-03T07:41:27+00:00",
"last_changed_readable": "This title was last changed on 03 December 2013 at 07:41:27",
"is_caution_title": false,
"number": "DN1234",
"summary_heading": "Summary of title",
"address_lines": ["71 Stemson Avenue", "Exeter", "EX4 8FY"],
"edition_date": "2013-12-03",
"tenure": "Freehold",
"class_of_title": "Absolute",
"proprietor_type_heading": "Owners"

Additional Extras: Lenders

nders": [{
    "name": "Hagenes, Glover and Russel Inc",
    "addresses": [{
        "lines": ["10 Test Boulevard", "testwood", "Warrington", "WA3 7QH"]
    }],
    "name_extra_info": ""
}]

PPI


"ppi_data": "The price stated to have been paid on 29 November 2013 was \u00a34,995"

Receipt


"receipt": {
    "address1": "Land Registry",
    "date": "26 July 2017 at 12:01:38",
    "reg_number": "GB 8888 181 53",
    "vat": "0.50",
    "address2": "Trafalgar House",
    "total": "3.00",
    "net": "2.50",
    "address4": "Croydon",
    "postcode": "CR0 2AQ",
    "address3": "1 Bedford Park",
    "title_number": "DN1234",
    "trans_id": "2631201383"
},

Response: 200


"status": "OK"

The pdf is then streamed to requesting application. Currently the receiving application has to define the response with

tent-Disposition" = "attachment; filename=summary-of-{}.pdf"

if it needs to be downloaded automatically for the user (recommended behaviour) rather than displayed in the browser.

Errors
Skeleton Documentation

This app is derived from the Spark Skeleton API, for further documentation please refer to the README.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.