Get Event Specifications - Implan-Group/api GitHub Wiki

Get Event Specifications


GET /api/v1/impact/project/{projectId}/eventtype/{eventType}/specification

Use this endpoint to get [Event-Type](Event Types)-specific codes, such as Industry Codes for industry events (such as Events#Industry Output Event) or Commodity Codes for commodity events (such as Events#Commodity Output).

Parameter Spec Type Details
projectId route guid The Project's Id.
eventType route str The Event Type to get specifications from.

🧾Example

📤 Request

GET /api/v1/impact/project/f6ed2521-b002-4bc6-cafe-44a64868b389/eventtype/IndustryOutput/specification

📥 Response

[
    {
        "code": "1",
        "name": "1 - Oilseed farming"
    },
    {
        "code": "2",
        "name": "2 - Grain farming"
    },
    {
        "code": "3",
        "name": "3 - Vegetable and melon farming"
    },

🧾Example

📤 Request

GET /api/v1/impact/project/f6ed2521-b002-4bc6-cafe-44a64868b389/eventtype/CommodityOutput/specification

📥 Response

[
    {
        "code": "3001",
        "name": "3001 - Oilseeds"
    },
    {
        "code": "3002",
        "name": "3002 - Grains"
    },
    {
        "code": "3003",
        "name": "3003 - Vegetables and melons"
    },
⚠️ **GitHub.com Fallback** ⚠️