Changes between Version 13 and Version 14 of GAPI_AM_API_DRAFT
- Timestamp:
- 10/24/11 09:09:19 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GAPI_AM_API_DRAFT
v13 v14 256 256 This change will modify all methods to return an XMLRPC struct (aka property list) on any application layer success, failure, and even on an error or for most exceptions. Note that a malformed XMLRPC request should still raise an XMLRPC Fault, and other Faults dictated by the XMLRPC specification should still be raised. This struct will contain the return value from the previous revision of the AM API as an entry. This struct will have 3 defined entries, and aggregates are free to include other entries to give more information to clients. 257 257 258 The three required entries in the return structure are {{{code}}}, {{{value}}}, and {{{o ption}}}:258 The three required entries in the return structure are {{{code}}}, {{{value}}}, and {{{output}}}: 259 259 * {{{code}}}: An error code: integer, non-zero on error. 260 260 * 0 = Success … … 274 274 * For !SliverStatus, the {{{value}}} is an XMLRPC struct 275 275 * For Shutdown, the {{{value}}} is a boolean 276 * {{{o ption}}}: On failure or error, this is required. Optional on success. This is a String with a human readable message explaining the result. Specifically, this might include an error string, a stacktrace, or other useful messages to help the Experimenter resolve or report the failure or error. It is not defined on success, though aggregates are free to use it.276 * {{{output}}}: On failure or error, this is required. Optional on success. This is a String with a human readable message explaining the result. Specifically, this might include an error string, a stacktrace, or other useful messages to help the Experimenter resolve or report the failure or error. It is not defined on success, though aggregates are free to use it. 277 277 278 278 Aggregates are encouraged to use {{{code}}} values and {{{output}}} messages that help experimenters and tools distinguish between bad input, other experimenter error, temporary server errors, or server bugs. … … 301 301 } 302 302 303 o ption: <none>303 output: <none> 304 304 } 305 305 }}} … … 310 310 code: 1 311 311 value: False 312 o ption: 'No such slice here'313 } 314 }}} 315 (That code and o ptionare merely examples.)312 output: 'No such slice here' 313 } 314 }}} 315 (That code and output are merely examples.) 316 316 317 317 An exception: … … 337 337 <lots of other options follow> 338 338 } 339 o ption= <None>339 output = <None> 340 340 } 341 341 … … 345 345 code=0 346 346 value= <GENI V3 Ad or Manifest RSpec string> 347 o ption= <None>347 output = <None> 348 348 } 349 349 … … 357 357 code=0 358 358 value= <GENI V3 Manifest RSpec string> 359 o ption= <None>359 output = <None> 360 360 } 361 361 … … 365 365 code=0 366 366 value= boolean 367 o ption= <None>367 output = <None> 368 368 } 369 369 … … 373 373 code=0 374 374 value= struct (as defined in V1) 375 o ption= <None>375 output = <None> 376 376 } 377 377 … … 383 383 code=0 384 384 value= boolean 385 o ption= <None>385 output = <None> 386 386 } 387 387 … … 391 391 code=0 392 392 value= boolean 393 o ption= <None>393 output = <None> 394 394 } 395 395 }}} … … 426 426 code=0 427 427 value= <GENI V3 Manifest RSpec string> 428 o ption= <None>428 output = <None> 429 429 } 430 430 }}}