Changes between Version 12 and Version 13 of NewTestbedAPISpec


Ignore:
Timestamp:
Aug 12, 2013 12:53:52 PM (11 years ago)
Author:
faber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewTestbedAPISpec

    v12 v13  
    561561    * Success - a flag indicating if the request succeeded
    562562    * Reason - a string indicating the reason if Success is false
     563
     564
     565=== Manipulating Profile Attributes ===
     566
     567Administrators may add attributes to project profiles or remove them.  That is to say, add a schema (including format constraints and descriptions), not set a value for a project.
     568
     569Creating an attribute:
     570
     571* '''Service:''' Projects
     572 * '''Operation:''' createProjectAttribute
     573 * '''Input Parameters:'''
     574   * Name - the attribute name
     575   * Type - the type (STRING, INT, FLOAT, OPAQUE)
     576   * Optional - a boolean, true if this attribute is optional
     577   * Access - an integer the user's ability to modify (READ_WRITE, READ_ONLY, WRITE_ONLY, NO_ACCESS)
     578   * Description - natural language description of the field (optional)
     579   * Format - a regular expression describing the format (optional)
     580   * Formatdescription - a natural language explanation of the format (optional)
     581   * OrderingHint - an integer suggesting where to present the attribute. Lower numbers come first
     582   * LengthHint - an integer suggesting how long an input
     583   * Def - default value of the attribute (will be set for all users)
     584 * '''Return Values:'''
     585  * a boolean, true if the attribute was created
     586
     587And removing an attribute:
     588
     589* '''Service:''' Projects
     590 * '''Operation:''' removeProjectAttribute
     591 * '''Input Parameters:'''
     592   * Name - the attribute name
     593 * '''Return Values:'''
     594  * a boolean, true if the attribute was removed
    563595
    564596=== Creating and Deleting Projects ===