- CALC API
- LCI API
- LCIA API
- METHOD API
- AICHAT(TEMP)
- CHROMA
创建计算方法
开发环境
http://localhost:9000
开发环境
http://localhost:9000
POST
/method
计算方法
Request
Body Params application/json
name
string
required
code
string
required
lciaDatasetId
string
required
methodLciaScreens
array [object {8}]
optional
code
string
required
name
string
required
method
string
required
category
string
required
indicator
string
required
exchangeNames
array[string]
required
compartments
array[string]
required
subcompartments
array[string]
required
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 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
code
integer
optional
message
string
optional
data
object
optional
timestamp
integer <int64>
optional
Example
{
"code": 0,
"message": "string",
"data": {},
"timestamp": 0
}
Modified at 2025-03-13 01:54:35