FCALC
  1. CALC API
FCALC
  • CALC API
    • 碳排放计算接口
      POST
  • LCI API
    • 创建LCI数据集
      POST
    • 更新LCI数据集
      PUT
    • 获取所有LCI数据集
      GET
    • 删除LCI数据集
      DELETE
    • 导入LCI数据
      POST
    • 分片查询LCI数据
      POST
    • LCI向量嵌入
      POST
    • LCI向量近似查询
      POST
    • LCI向量近似查询
      POST
  • LCIA API
    • 创建LCIA数据集
      POST
    • 更新LCIA数据集
      PUT
    • 获取所有LCIA数据集
      GET
    • 删除LCIA数据集
      DELETE
    • 导入LCIA数据
      POST
    • 分片查询LCIA数据
      POST
  • METHOD API
    • 创建计算方法
      POST
    • 获取所有计算方法
      GET
    • 更新计算方法
      PUT
    • 删除计算方法
      DELETE
    • 重新计算LCI方法
      PUT
  • AICHAT(TEMP)
    • 文档解析
      POST
    • 文档分析
      POST
  • CHROMA
  1. CALC API

碳排放计算接口

开发环境
http://localhost:9000
开发环境
http://localhost:9000
POST
/calc/emission
计算
根据提供的过程建模数据计算碳排放

Request

Body Params application/json
timestamp
number 
时间戳
required
code
number 
响应码
required
message
string 
响应消息
required
data
object (CalcRequest) 
required
methodId
string 
required
计算方法ID
process
array[object (ProcessNode) {8}] 
required
过程建模数据
Example
{
    "timestamp": 0,
    "code": 0,
    "message": "string",
    "data": {
        "methodId": "string",
        "process": [
            {
                "processId": "string",
                "processName": "string",
                "qty": 0,
                "unit": "p",
                "unitProcess": true,
                "type": "any",
                "lciAry": [
                    {
                        "lciDataId": "string",
                        "conversionCoefficient": 0,
                        "coefficient": 0
                    }
                ],
                "subprocess": [
                    {}
                ]
            }
        ]
    }
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:9000/calc/emission' \
--header 'Content-Type: application/json' \
--data-raw '{
    "timestamp": 0,
    "code": 0,
    "message": "string",
    "data": {
        "methodId": "string",
        "process": [
            {
                "processId": "string",
                "processName": "string",
                "qty": 0,
                "unit": "p",
                "unitProcess": true,
                "type": "any",
                "lciAry": [
                    {
                        "lciDataId": "string",
                        "conversionCoefficient": 0,
                        "coefficient": 0
                    }
                ],
                "subprocess": [
                    {}
                ]
            }
        ]
    }
}'

Responses

🟢200成功
application/json
计算成功
Body
code
integer 
required
message
string 
required
data
object (CalcResponse) 
required
totalEmission
number 
optional
总碳排
classifyEmission
object 
optional
分类排放
typesEmission
object 
optional
类型排放
unitProcessesEmission
array [object {9}] 
optional
单元过程排放
processesEmission
array[object (ProcessEmissionResponse) {9}] 
optional
过程排放
timestamp
integer 
required
Example
{
    "code": 0,
    "message": "string",
    "data": {
        "totalEmission": 0,
        "classifyEmission": {
            "property1": 0,
            "property2": 0
        },
        "typesEmission": {
            "property1": 0,
            "property2": 0
        },
        "unitProcessesEmission": [
            {
                "processId": "string",
                "totalQty": 0,
                "qty": 0,
                "unit": "string",
                "processName": "string",
                "lciAry": {
                    "lciDataId": "string",
                    "conversionCoefficient": "string",
                    "coefficient": "string"
                },
                "type": "string",
                "emission": 0,
                "classifyEmission": {
                    "property1": 0,
                    "property2": 0
                }
            }
        ],
        "processesEmission": [
            {
                "processId": "string",
                "qty": 0,
                "unit": "string",
                "processName": "string",
                "emission": 0,
                "classifyEmission": {
                    "property1": 0,
                    "property2": 0
                },
                "typesEmission": {
                    "property1": 0,
                    "property2": 0
                },
                "subProcesses": [
                    {}
                ],
                "unitProcess": true
            }
        ]
    },
    "timestamp": 0
}
Modified at 2025-04-09 05:26:37
Next
创建LCI数据集
Built with