Bugzilla:API Comparison: Difference between revisions

Use tables
(Use tables)
Line 5: Line 5:
===Matching Calls===
===Matching Calls===


* Search for bugs: /bug GET -- Bug.search  
{| border="1"
* Create new bug: /bug POST -- Bug.create
! Function
* Retrieve bug: /bug/<id> GET -- Bug.get
! REST
* Update bug: /bug/<id> PUT -- Bug.update / Bug.update_see_also / Bug.update_tags
! RPC
 
|-
* List comments for bug: /bug/<id>/comment GET -- Bug.comments
| Search for bugs||/bug GET||Bug.search  
* Add new comment to bug: /bug/<id>/comment POST -- Bug.add_comment
|-
* List history for bug: /bug/<id>/history GET -- Bug.history
| Create new bug||/bug POST||Bug.create
 
|-
* List attachments for bug: /bug/<id>/attachment GET -- Bug.attachments
| Retrieve bug||/bug/<id> GET||Bug.get
* Retrieve attachment: /attachment/<id> GET -- Bug.attachments
|-
* Create new attachment: /bug/<id>/attachment POST -- Bug.add_attachment
| Update bug||/bug/<id> PUT||Bug.update / Bug.update_see_also / Bug.update_tags
 
|-
* Search for users: /user GET -- User.get
| List comments for bug||/bug/<id>/comment GET||Bug.comments
* Retrieve user: /user/<id> GET -- User.get
|-
| Add new comment to bug||/bug/<id>/comment POST||Bug.add_comment
|-
| List history for bug||/bug/<id>/history GET||Bug.history
|-
| List attachments for bug||/bug/<id>/attachment GET||Bug.attachments
|-
| Retrieve attachment||/attachment/<id> GET||Bug.attachments
|-
| Create new attachment||/bug/<id>/attachment POST||Bug.add_attachment
|-
| Search for users||/user GET||User.get
|-
| Retrieve user||/user/<id> GET||User.get
|}


===RPC Calls Supplying Subsets of REST /config Call===
===RPC Calls Supplying Subsets of REST /config Call===


* Get current Bugzilla version: Bugzilla.version
{| border="1"
* Get info about classifications by name or ID: Classification.get
! Function
* Get info about products: Product.get
! RPC
* Get info about fields and their legal values: Bug.fields
|-
| Get current Bugzilla version||Bugzilla.version
|-
| Get info about classifications by name or ID||Classification.get
|-
| Get info about products||Product.get
|-
| Get info about fields and their legal values||Bug.fields
|}


===RPC Calls Not In REST===
===RPC Calls Not In REST===
Line 32: Line 54:
====User====
====User====


* Get list of installed extensions: Bugzilla.extensions
{| border="1"
* Get info about Bugzilla's notions of time: Bugzilla.time
! Function
* Get safe parameter values: Bugzilla.parameters
! RPC
* Get the latest time from the audit_log table: Bugzilla.last_audit_time
|-
* Get info about products a user can search on: Product.get_selectable_products
| Get list of installed extensions||Bugzilla.extensions
* Get info about products a user can enter bugs against: Product.get_enterable_products
|-
* Get info about products a user can search or enter bugs against: Product.get_accessible_products
| Get info about Bugzilla's notions of time||Bugzilla.time
|-
| Get safe parameter values||Bugzilla.parameters
|-
| Get the latest time from the audit_log table||Bugzilla.last_audit_time
|-
| Get info about products a user can search on||Product.get_selectable_products
|-
| Get info about products a user can enter bugs against||Product.get_enterable_products
|-
| Get info about products a user can search or enter bugs against||Product.get_accessible_products
|}


====Admin====
====Admin====


* Create a new group: Group.create
{| border="1"
* Update info about a group: Group.update
! Function
* Create a new product: Product.create
! RPC
* Update info about a product: Product.update
|-
* Offer account by email: User.offer_account_by_email
| Create a new group||Group.create
* Create a user account: User.create
|-
* Update a user account: User.update
| Update info about a group||Group.update
|-
| Create a new product||Product.create
|-
| Update info about a product||Product.update
|-
| Offer account by email||User.offer_account_by_email
|-
| Create a user account||User.create
|-
| Update a user account||User.update
|}


====Not Needed For REST====
====Not Needed For REST====


* Log in to RPC interface: User.login
{| border="1"
* Log out of RPC interface: User.logout
! Function
! RPC
|-
| Log in to RPC interface||User.login
|-
| Log out of RPC interface||User.logout
|}


====Deprecated====
====Deprecated====


* Bugzilla.timezone
{| border="1"
* Bug.legal_values
! RPC
|-
| Bugzilla.timezone
|-
| Bug.legal_values
|}


===REST Calls Not In RPC===
===REST Calls Not In RPC===


* List flags for bug: /bug/<id>/flag GET (no specific call, although Bug.get returns the info)
{| border="1"
* Count bugs: /count GET
! Function
* Update attachment metadata: /attachment/<id> PUT
! REST
* Get Configuration: /configuration GET (although some config stuff is available as more specific calls)
|-
 
| List flags for bug||/bug/<id>/flag GET (no specific call, although Bug.get returns the info)
|-
| Count bugs||/count GET
|-
| Update attachment metadata||/attachment/<id> PUT
|-
| Get Configuration||/configuration GET (although some config stuff is available as more specific calls)
|}


==Matching Calls: Details==
==Matching Calls: Details==
Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
4,925

edits