FCALC
  1. METHOD 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. METHOD API

创建计算方法

开发环境
http://localhost:9000
开发环境
http://localhost:9000
POST
/method
创建新的计算方法

Request

Body Params application/json

Example
{
    "name": "string",
    "code": "string",
    "lciaDatasetId": "string",
    "methodLciaScreens": [
        {
            "code": "string",
            "name": "string",
            "method": "string",
            "category": "string",
            "indicator": "string",
            "exchangeNames": [
                "string"
            ],
            "compartments": [
                "string"
            ],
            "subcompartments": [
                "string"
            ]
        }
    ]
}

Request Code 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/method' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "string",
    "code": "string",
    "lciaDatasetId": "string",
    "methodLciaScreens": [
        {
            "code": "string",
            "name": "string",
            "method": "string",
            "category": "string",
            "indicator": "string",
            "exchangeNames": [
                "string"
            ],
            "compartments": [
                "string"
            ],
            "subcompartments": [
                "string"
            ]
        }
    ]
}'

Responses

🟢200成功
application/json
创建成功
Body

Example
{
    "code": 0,
    "message": "string",
    "data": {},
    "timestamp": 0
}
Modified at 2025-03-13 01:54:35
Previous
分片查询LCIA数据
Next
获取所有计算方法
Built with