Swagger How To - danmarksmiljoeportal/DkJord GitHub Wiki
You can do manual testing via Swagger, which will help you understand how to implement up against the the REST API.

Swagger is relatively easy to use.
Log in by clicking here:

Then here:

Insert username and password here:

Close the dialog:

Choose a method and click “Try it out”:

For the above method, insert a valid object, e.g. paste in this:
{
"locationReference": "329-20700",
"locationName": "Jordforurening - Sjællandsgade 21-35, 4100 Ringst",
"regionCode": "1083",
"locationDescriptionText": "Sjællandsgade 21-35, 4100 Ringsted",
"addressAccess": {
"municipalityCode": "329",
"streetCode": "0000",
"streetBuildingIdentifier": " "
},
"totalBudgetEstimateAmount": 0,
"readyForReportingIndicator": true,
"pollutionStatusCode": "07 ",
"pollutionStatusNuance": 0,
"allowExpiredCodesIndicator": true,
"allowKnowledgeLevelCreateIndicator": true,
"useCodes": [
"23 "
],
"plannedActions": [
{
"plannedActionCode": "03 ",
"plannedActionEndDateTimeSpecified": true
},
{
"plannedActionCode": "02 ",
"plannedActionEndDateTimeSpecified": true
}
],
"pollutionCauses": [
{
"pollutionCauseCode": "70.20.10 ",
"pollutionActivityCodes": [
"007 "
],
"pollutionCauseStartDate": "1976-01-01T00:00:00",
"pollutionCauseEndDate": "1991-12-31T00:00:00"
}
],
"currentTargetAreaCodes": [
"09",
"05",
"04"
],
"projects": [
{
"projectNumberIdentifier": 1,
"projectDescriptionText": "Regionens Indsats",
"legalFrameworkCode": null,
"projectStartDate": "2020-05-26T14:36:33.020Z",
"projectStartDateSpecified": true,
"projectEndDate": "2020-05-26T14:36:33.020Z",
"projectEndDateSpecified": true,
"payerCode": "06 ",
"pastCostAmount": 0,
"currentTargetAreaCodes": null,
"projectPhases": [
{
"projectPhaseStartDate": "2020-05-26T14:36:33.020Z",
"projectPhaseStartDateSpecified": true,
"projectPhaseEndDate": "2020-05-26T14:36:33.020Z",
"projectPhaseEndDateSpecified": true,
"legalFrameworkCode": null,
"currentTargetAreaCodes": [
"09",
"05",
"04"
],
"projectPhaseCode": "28 ",
"geometries": [
],
"pollutants": [
],
"treatments": [
]
}
],
"costs": [
]
}
],
"section8Authorizations": [
],
"statusDeclarations": [
{
"pollutionIdentificationDate": "2020-05-26T14:36:33.020Z",
"pollutionIdentificationDateSpecified": true,
"pollutionQualificationDate": "2020-05-26T14:36:33.020Z",
"pollutionQualificationDateSpecified": true,
"requirementForV2StudyDate": "2020-05-26T14:36:33.020Z",
"requirementForV2StudyDateSpecified": true,
"justificationCode": "07 ",
"pollutionQualificationCode": null,
"pollutionStatusCode": "07 ",
"areaMeasure": 78,
"geometries": [
{
"daiThemeReference": "dkjord_v1",
"daiObjectReference": "5104781E-2AF6-43A3-B460-DA1FA696547F",
"geometryDataText": "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><dmp:FeatureCollection xmlns:gml=\"http://www.opengis.net/gml\" xmlns:dmp=\"urn:oio:dk.miljoeportal.geodata:1.0.0\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:schemaLocation=\"urn:oio:dk.miljoeportal.geodata:1.0.0 http://arealinformation.miljoeportal.dk/gis/services/public/MapServer/WFSServer?request=DescribeFeatureType&version=1.0.0\"><gml:boundedBy><gml:Box srsName=\"EPSG:25832\"><gml:coordinates>676407.78700006147322.8980000676407.78700006147332.8980000676417.78700006147332.8980000676417.78700006147322.8980000676407.78700006147322.8980000</gml:coordinates></gml:Box></gml:boundedBy><gml:featureMember><dmp:dkjord_v1><dmp:Shape><gml:Polygon xmlns:gml=\"http://www.opengis.net/gml\"> <gml:outerBoundaryIs> <gml:LinearRing> <gml:coordinates>676417.7869999995,6147327.898 676417.6909999996,6147328.874 676417.4060000004,6147329.812000001 676416.9440000001,6147330.676000001 676416.3229999999,6147331.434 676415.5650000004,6147332.056 676414.7000000002,6147332.517999999 676413.7630000003,6147332.801999999 676412.7869999995,6147332.898 676411.8119999999,6147332.801999999 676410.8739999998,6147332.517999999 676410.0089999996,6147332.056 676409.2520000003,6147331.434 676408.6299999999,6147330.676000001 676408.1679999996,6147329.812000001 676407.8830000004,6147328.874 676407.7869999995,6147327.898 676407.8830000004,6147326.923 676408.1679999996,6147325.984999999 676408.6299999999,6147325.119999999 676409.2520000003,6147324.363 676410.0089999996,6147323.741 676410.8739999998,6147323.278999999 676411.8119999999,6147322.994000001 676412.7869999995,6147322.898 676413.7630000003,6147322.994000001 676414.7000000002,6147323.278999999 676415.5650000004,6147323.741 676416.3229999999,6147324.363 676416.9440000001,6147325.119999999 676417.4060000004,6147325.984999999 676417.6909999996,6147326.923 676417.7869999995,6147327.898</gml:coordinates> </gml:LinearRing> </gml:outerBoundaryIs></gml:Polygon></dmp:Shape></dmp:dkjord_v1></gml:featureMember></dmp:FeatureCollection>"
}
]
},
{
"pollutionIdentificationDate": "2020-05-26T14:36:33.020Z",
"pollutionIdentificationDateSpecified": true,
"pollutionQualificationDate": "2020-05-26T14:36:33.020Z",
"pollutionQualificationDateSpecified": true,
"requirementForV2StudyDate": "2020-05-26T14:36:33.020Z",
"requirementForV2StudyDateSpecified": true,
"justificationCode": "07 ",
"pollutionQualificationCode": null,
"pollutionStatusCode": "16 ",
"areaMeasure": 3694,
"geometries": [
{
"daiThemeReference": "dkjord_ufk",
"daiObjectReference": "24EB14B8-3FF4-42C1-9239-968146DB3EC9",
"geometryDataText": "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><dmp:FeatureCollection xmlns:gml=\"http://www.opengis.net/gml\" xmlns:dmp=\"urn:oio:dk.miljoeportal.geodata:1.0.0\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:schemaLocation=\"urn:oio:dk.miljoeportal.geodata:1.0.0 http://arealinformation.miljoeportal.dk/gis/services/public/MapServer/WFSServer?request=DescribeFeatureType&version=1.0.0\"><gml:boundedBy><gml:Box srsName=\"EPSG:25832\"><gml:coordinates>676361.34300006147263.7650000676361.34300006147372.7260000676437.79600006147372.7260000676437.79600006147263.7650000676361.34300006147263.7650000</gml:coordinates></gml:Box></gml:boundedBy><gml:featureMember><dmp:dkjord_ufk><dmp:Shape><gml:Polygon xmlns:gml=\"http://www.opengis.net/gml\"> <gml:outerBoundaryIs> <gml:LinearRing> <gml:coordinates>676413.2039999999,6147372.726 676406.4759999998,6147370.333000001 676361.3430000003,6147270.222999999 676376.852,6147263.765000001 676380.7479999997,6147264.550000001 676403.0300000003,6147273.259 676419.0609999998,6147302.422 676425.5619999999,6147334.357000001 676437.7960000001,6147343.989 676413.2039999999,6147372.726</gml:coordinates> </gml:LinearRing> </gml:outerBoundaryIs> <gml:innerBoundaryIs> <gml:LinearRing> <gml:coordinates>676417.7869999995,6147327.898 676417.6909999996,6147326.923 676417.4060000004,6147325.984999999 676416.9440000001,6147325.119999999 676416.3229999999,6147324.363 676415.5650000004,6147323.741 676414.7000000002,6147323.278999999 676413.7630000003,6147322.994000001 676412.7869999995,6147322.898 676411.8119999999,6147322.994000001 676410.8739999998,6147323.278999999 676410.0089999996,6147323.741 676409.2520000003,6147324.363 676408.6299999999,6147325.119999999 676408.1679999996,6147325.984999999 676407.8830000004,6147326.923 676407.7869999995,6147327.898 676407.8830000004,6147328.874 676408.1679999996,6147329.812000001 676408.6299999999,6147330.676000001 676409.2520000003,6147331.434 676410.0089999996,6147332.056 676410.8739999998,6147332.517999999 676411.8119999999,6147332.801999999 676412.7869999995,6147332.898 676413.7630000003,6147332.801999999 676414.7000000002,6147332.517999999 676415.5650000004,6147332.056 676416.3229999999,6147331.434 676416.9440000001,6147330.676000001 676417.4060000004,6147329.812000001 676417.6909999996,6147328.874 676417.7869999995,6147327.898</gml:coordinates> </gml:LinearRing> </gml:innerBoundaryIs></gml:Polygon></dmp:Shape></dmp:dkjord_ufk></gml:featureMember></dmp:FeatureCollection>"
}
]
}
],
"parcels": [
{
"martLandParcelIdentification": {
"cadastralDistrictName": null,
"cadastralDistrictIdentifier": "2001253",
"landParcelIdentifier": null,
"commonPropertyUnitIdentifier": null
},
"housingStatementIndicator": false,
"pollutionStatusCode": "07 ",
"pollutionPartialIndicator": true
}
],
"pollutants": [
]
}
Click Execute:

Check the response:
