Difference between revisions of "Scenario"
(→POST) |
|||
Line 95: | Line 95: | ||
''copy'' - Makes copy of scenario and redirects to new scenario | ''copy'' - Makes copy of scenario and redirects to new scenario | ||
----- | |||
''type'' - Adds meta-information to the scenario. Possible values: waterstoragecapacity, omcontent, soilsource, temperature, humidity, spikeconcentration, spikecompound, bulkdens, biomass, rulelikelihood, redox, soiltexture2, soiltexture1, soilclassificationsystem, cec, reference, acidity | |||
''<type-parameter>'' - the parameters for each information-type are given below this table | |||
| | | | ||
|Modify the scenario identified by the URI. | |Modify the scenario identified by the URI. | ||
Line 105: | Line 110: | ||
500 - Internal Server Error | 500 - Internal Server Error | ||
|} | |} | ||
Type parameters: | |||
waterstoragecapacity: | |||
* wst | |||
* wstConditions | |||
omcontent: | |||
* omcontent | |||
* omDim | |||
soilsource: | |||
* soilsourcedata | |||
temperature: | |||
* temperature | |||
humidity: | |||
* expHumid | |||
spikeconcentration: | |||
* spikeConcentration | |||
spikecompound: | |||
* spikeCompSmiles | |||
* spikeComp | |||
bulkdens: | |||
* bulkdensity | |||
biomass: | |||
* biomassStart | |||
* biomassEnd | |||
rulelikelihood: | |||
* ruleLikelihood | |||
redox: | |||
* redoxType | |||
soiltexture2: | |||
* sand | |||
* silt | |||
* clay | |||
soiltexture1: | |||
* soilTextureType | |||
soilclassificationsystem: | |||
* soilclassificationsystem | |||
cec: | |||
* cecdata | |||
reference: | |||
* reference | |||
* pmid | |||
acidity: | |||
* lowPh | |||
* highPh | |||
== DELETE == | == DELETE == |
Revision as of 11:01, 21 October 2015
REST Operations
GET
URI | Parameter | Accept Types | Result | Status Codes |
---|---|---|---|---|
/scenario | text/html
application/json text/plain |
List of all scenarios of all packages that the user has permission to read. | 200 - OK
500 - Internal Server Error | |
/package/<id>/scenario | text/html
application/json text/plain |
List of all pathways of all the package given by the URI. | 200 - OK
401 - Unauthorized 500 - Internal Server Error | |
/package/<id>/scenario/<id> | text/html
application/json text/plain |
The scenario identified by the URI. | 200 - OK
401 - Unauthorized 404 - Not Found 500 - Internal Server Error |
POST
URI | Parameter | Accept Types | Result | Status Codes |
---|---|---|---|---|
/scenario
/package/<id>/scenario |
studyname
collectionURI studydescription date |
Creates a new scenario in the selected/default package. The redirect points to the URI of the new scenario. | 303 - See Other
500 - Internal Server Error | |
/package/<id>/scenario/<id> | scenarioName
scenarioDescription scenarioDate ppsObjects - Attach scenario to array of pathway/compound/reaction/rules URIs copy - Makes copy of scenario and redirects to new scenario type - Adds meta-information to the scenario. Possible values: waterstoragecapacity, omcontent, soilsource, temperature, humidity, spikeconcentration, spikecompound, bulkdens, biomass, rulelikelihood, redox, soiltexture2, soiltexture1, soilclassificationsystem, cec, reference, acidity <type-parameter> - the parameters for each information-type are given below this table |
Modify the scenario identified by the URI. | 200 - OK
401 - Unauthorized 404 - Not Found 500 - Internal Server Error |
Type parameters:
waterstoragecapacity:
- wst
- wstConditions
omcontent:
- omcontent
- omDim
soilsource:
- soilsourcedata
temperature:
- temperature
humidity:
- expHumid
spikeconcentration:
- spikeConcentration
spikecompound:
- spikeCompSmiles
- spikeComp
bulkdens:
- bulkdensity
biomass:
- biomassStart
- biomassEnd
rulelikelihood:
- ruleLikelihood
redox:
- redoxType
soiltexture2:
- sand
- silt
- clay
soiltexture1:
- soilTextureType
soilclassificationsystem:
- soilclassificationsystem
cec:
- cecdata
reference:
- reference
- pmid
acidity:
- lowPh
- highPh
DELETE
URI | Parameter | Accept Types | Result | Status Codes |
---|---|---|---|---|
/pathway | Delete all pathways the user has write access on (does not delete created compounds or reactions). | 303 - See Other
500 - Internal Server Error | ||
/package/<id>/pathway | Delete all pathways in the package given by the URI. | 303 - See Other
401 - Unauthorized 500 - Internal Server Error | ||
/package/<id>/pathway/<id> | Delete the pathway identified by the URI. | 303 - See Other | ||
401 - Unauthorized | ||||
404 - Not Found | ||||
500 - Internal Server Error | ||||
/package/<id>/pathway/<id>/node/<id> | Remove node from pathway. | 303 - See Other
401 - Unauthorized 500 - Internal Server Error | ||
/package/<id>/pathway/<id>/edge/<id> | Remove edge from pathway. | 303 - See Other
401 - Unauthorized 500 - Internal Server Error |
PUT
Not Implemented.