Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
4,925
edits
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
* The idea is that this object is designed for easy lookup of values, so there are a lot of hashes, keyed by name or ID, instead of arrays over which one would have to iterate. | * The idea is that this object is designed for easy lookup of values, so there are a lot of hashes, keyed by name or ID, instead of arrays over which one would have to iterate. | ||
* This is also why many hashes are keyed by name rather than ID - it's because the name is more likely to be what the API user has. He is, of course, at liberty to transform the data structures to key off something else. | |||
* The use of hashes also gives forwards-compatibility. For example, if some fields became product or component-specific, we could add a "fields" member to the hash. | * The use of hashes also gives forwards-compatibility. For example, if some fields became product or component-specific, we could add a "fields" member to the hash. | ||
* Classifications are not wrapped around their products in the same way that products are wrapped around their components because the use of classifications is optional, and this would make the top-level field name depend on whether they were switched on or not. | |||
==Configuration== | ==Configuration== | ||
Line 21: | Line 23: | ||
|groups||Hash of [[Bugzilla:REST_API:Objects:Configuration#Group|Group]], keyed by name|| | |groups||Hash of [[Bugzilla:REST_API:Objects:Configuration#Group|Group]], keyed by name|| | ||
|- | |- | ||
| | |flag_types||Hash of [[Bugzilla:REST_API:Objects:Configuration#FlagType|FlagType]], keyed by ID|| | ||
|- | |- | ||
| | |fields||Hash of [[Bugzilla:REST_API:Objects:Configuration#Field|Field]], keyed by name|| | ||
|} | |} | ||
Line 49: | Line 51: | ||
|version||Array of String||Version names | |version||Array of String||Version names | ||
|- | |- | ||
|target_milestone||Array of String||TM names | |target_milestone||Array of String||TM names; only if usetargetmilestone set | ||
|- | |- | ||
|group||Array of String||Group names | |group||Array of String||Group names | ||
Line 73: | Line 75: | ||
|description||String|| | |description||String|| | ||
|- | |- | ||
| | |is_accepting_bugs||Boolean|| | ||
|- | |- | ||
|is_active||Boolean|| | |is_active||Boolean|| | ||
Line 87: | Line 89: | ||
|description||String|| | |description||String|| | ||
|- | |- | ||
| | |is_for_bugs||Boolean||False means "is for attachments" | ||
|- | |- | ||
|is_requestable||Boolean|| | |is_requestable||Boolean|| |