Skip to content

API

jug_lca_buildings exposes a REST API for processing building data.

Endpoints

POST /emissions

Processes GeoJSON data provided in the request body.

POST /emissions/upload

Processes GeoJSON data provided as a file upload.

Request

  • Content type: application/json or multipart form-data.
  • Body: GeoJSON FeatureCollection.

Response

The response includes:

  • emissions per building,
  • structured JSON output.

Error handling

The API returns validation errors when:

  • required fields are missing,
  • input structure is invalid,
  • data types are incorrect.

Notes

  • The API is the main interface for service integration.
  • Input and output formats are consistent with other execution modes.