API Reference Overview

All public REST API endpoints in the ConformaESG Integration Service.

Base URL

Shell
http://localhost:8080

Authentication Headers

HeaderRequiredDescription
X-API-Key✅ all requestsService authentication
X-User-Id✅ POST / PATCHOperator ID for audit logging
Content-Type✅ write requestsapplication/json

Response Codes

CodeMeaning
200 OKSuccess (GET, PATCH)
201 CreatedResource created (POST)
400 Bad RequestValidation error
401 UnauthorizedMissing/invalid API key
404 Not FoundResource not found
500 Internal Server ErrorServer error

Error Format

JSON
{ "error": "Supplier not found with id: 999" }

Pagination

ParamTypeDefaultDescription
pageinteger0Zero-based page index
sizeintegervariesItems per page (see each resource)

Available Resources

ResourceBase PathDefault Size / Max
Suppliers/api/suppliers50 / 250
Supplier Products/api/supplier-products
Company Products/api/company-products
Purchase Records/api/purchase-records
Chemical Products/api/chemicals
Traceability/api/traceability
Processing Stages/api/processing-stages

Swagger UI

Shell
http://localhost:8080/q/swagger-ui
http://localhost:8080/q/openapi