This web service creates a weight set. When it is created, the weight set is given a default scale that is equal throughout all sibling lists. Basically if used now to get a score, it will not be different from the natural score. So a user must now define the scale for this weight set.
POST
None. Open to all public users.
{type}/SMI/{version}/weightset/create
|
Parameter |
Description |
|
&key |
The API Key that is provided when your application has been registered. |
|
&secret |
The Shared Secret that is provided when your application has been registered. |
|
&name |
Name of the resource being created. |
|
&desc |
Description of the resource being created. |
Example:
The following URI creates a weight set called TestWS. A default scale will be applied to this weight et automatically.
https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/weightset/create?name=TestWS&desc=This%20is%20a%20test&key=4f400a9b486c764d3a6ec5f86fe0a2aa&secret=e320f8f11cb88b5ab346d9ab34033d95
Sample output of successful execution:
{
"result":
{
"returnCode": "0",
"errorMessage": "Operation Successful.",
"resultCount": 1,
"Bean-List": {
"ResourceWeightSet-Bean":[
{ "name": "WSTest", "uuid": "0e4bddc9-e1ae-4768-97c8-27c91e2721c8", "userId": "5", "public": "0", "versionId": "0.5", "publishDate": "null", "desc": "This is a test.", "createDate": "2011-03-17 22:41:31.0", "createdBy": "adminUser@ca.com" }
]
}
}
}
| Copyright © 2012 CA. Alle Rechte vorbehalten. | Senden Sie CA Technologies eine E-Mail zu diesem Thema. |