Skip to content
José Miguel Rodríguez García edited this page Oct 19, 2021 · 5 revisions

The application uses an embedded Tomcat server running on Docker container. The default port is 8080.

GET - Search

Request:

GET http://localhost:8080/api/documents/271636001

Response:

{
    "code": "271636001",
    "codeListCode": "ZIB001",
    "source": "ZIB",
    "displayValue": "Polsslag regelmatig",
    "longDescription": "The long description is necessary",
    "fromDate": "2019-01-01",
    "toDate": null,
    "sortingPriority": 1
}

GET - All

Request:

GET http://localhost:8080/api/documents

Response:

[
    {
        "code": "271636001",
        "codeListCode": "ZIB001",
        "source": "ZIB",
        "displayValue": "Polsslag regelmatig",
        "longDescription": "The long description is necessary",
        "fromDate": "2019-01-01",
        "toDate": null,
        "sortingPriority": 1
    }
]

POST

Request:

POST http://localhost:8080/api/documents/
Content-Type: application/json

{
  "code": "415945006",
  "codeListCode": "ZIB003",
  "source": "ZIB",
  "displayValue": "Orale temperatuur (onder de tong)",
  "longDescription": "",
  "fromDate": "2019-01-01",
  "toDate": null,
  "sortingPriority": 2
}

Response:

{
  "code": "415945006",
  "codeListCode": "ZIB003",
  "source": "ZIB",
  "displayValue": "Orale temperatuur (onder de tong)",
  "longDescription": "",
  "fromDate": "2019-01-01",
  "toDate": null,
  "sortingPriority": 2
}

PUT

Request:

PUT http://localhost:8080/api/documents/698832009
Content-Type: application/json


{
    "code": "698832009",
    "codeListCode": "ZIB003",
    "source": "ZIB",
    "displayValue": "Blaastemperatuur",
    "longDescription": "",
    "fromDate": "2019-01-01T00:00:00.000+00:00",
    "toDate": null,
    "sortingPriority": null
}

Response:

{
    "code": "698832009",
    "codeListCode": "ZIB003",
    "source": "ZIB",
    "displayValue": "Blaastemperatuur",
    "longDescription": "",
    "fromDate": "2019-01-01T00:00:00.000+00:00",
    "toDate": null,
    "sortingPriority": null
}

DELETE - All

REquest:

DELETE http://localhost:8080/api/documents/

Response:

200

DELETE - By code

Request:

DELETE http://localhost:8080/api/documents/698832009

Response:

{
    "code": "698832009",
    "codeListCode": "ZIB003",
    "source": "ZIB",
    "displayValue": "Blaastemperatuur",
    "longDescription": "",
    "fromDate": "2019-01-01T00:00:00.000+00:00",
    "toDate": null,
    "sortingPriority": null
}
Clone this wiki locally