Comments¶
Comment service at /comments/{id}¶
Comment submission service
GET¶
Accepted content types:- text/html
Return a single comment from an id.
- Args:
- request (pyramid.request): The current request.
- Return:
- dict: A dictionary with key “comment” indexing the requested comment.
Ensure that a given comment id exists
Response: comment.html
GET¶
Accepted content types:- application/atom+xml
Return a single comment from an id.
- Args:
- request (pyramid.request): The current request.
- Return:
- dict: A dictionary with key “comment” indexing the requested comment.
Ensure that a given comment id exists
Response: rss
GET¶
Accepted content types:- application/javascript
Return a single comment from an id.
- Args:
- request (pyramid.request): The current request.
- Return:
- dict: A dictionary with key “comment” indexing the requested comment.
Ensure that a given comment id exists
Response: jsonp
GET¶
Accepted content types:- application/json
- text/json
Return a single comment from an id.
- Args:
- request (pyramid.request): The current request.
- Return:
- dict: A dictionary with key “comment” indexing the requested comment.
Ensure that a given comment id exists
Response: json
Comments service at /comments/¶
Comment submission service
GET¶
values in the querystring- like (String) - (optional)
- search (String) - (optional)
- chrome (Boolean) - (default: true)
- page (Integer) - (default: 1)
- rows_per_page (Integer) - (default: 20)
- updates (Sequence) - (optional)
- packages (Sequence) - (optional)
- user (String) - (optional)
- update_owner (String) - (optional)
- ignore_user (String) - (optional)
- anonymous (Boolean) - (optional)
- since (DateTime) - (optional)
- text/html
Search for comments matching given search parameters.
- Args:
- request (pyramid.request): The current request.
- Return:
- dict: A dictionary with the following key-value pairs:
- comments: An iterable with the current page of matched comments. page: The current page number. pages: The total number of pages. rows_per_page: The number of rows per page. total: The number of items matching the search terms. chrome: A boolean indicating whether to paginate or not.
Make sure this user existsMake sure this user existsMake sure this user existsMake sure those updates existMake sure those packages exist
Response: comments.html
GET¶
values in the querystring- like (String) - (optional)
- search (String) - (optional)
- chrome (Boolean) - (default: true)
- page (Integer) - (default: 1)
- rows_per_page (Integer) - (default: 20)
- updates (Sequence) - (optional)
- packages (Sequence) - (optional)
- user (String) - (optional)
- update_owner (String) - (optional)
- ignore_user (String) - (optional)
- anonymous (Boolean) - (optional)
- since (DateTime) - (optional)
- application/javascript
Search for comments matching given search parameters.
- Args:
- request (pyramid.request): The current request.
- Return:
- dict: A dictionary with the following key-value pairs:
- comments: An iterable with the current page of matched comments. page: The current page number. pages: The total number of pages. rows_per_page: The number of rows per page. total: The number of items matching the search terms. chrome: A boolean indicating whether to paginate or not.
Make sure this user existsMake sure this user existsMake sure this user existsMake sure those updates existMake sure those packages exist
Response: jsonp
GET¶
values in the querystring- like (String) - (optional)
- search (String) - (optional)
- chrome (Boolean) - (default: true)
- page (Integer) - (default: 1)
- rows_per_page (Integer) - (default: 20)
- updates (Sequence) - (optional)
- packages (Sequence) - (optional)
- user (String) - (optional)
- update_owner (String) - (optional)
- ignore_user (String) - (optional)
- anonymous (Boolean) - (optional)
- since (DateTime) - (optional)
- application/json
- text/json
Search for comments matching given search parameters.
- Args:
- request (pyramid.request): The current request.
- Return:
- dict: A dictionary with the following key-value pairs:
- comments: An iterable with the current page of matched comments. page: The current page number. pages: The total number of pages. rows_per_page: The number of rows per page. total: The number of items matching the search terms. chrome: A boolean indicating whether to paginate or not.
Make sure this user existsMake sure this user existsMake sure this user existsMake sure those updates existMake sure those packages exist
Response: json
POST¶
values in the body- csrf_token (String)
- update (String)
- text (String) - (default: “”)
- karma (Integer) - (default: 0)
- karma_critpath (Integer) - (default: 0)
- bug_feedback (Sequence) - (default: [])
- testcase_feedback (Sequence) - (default: [])
- captcha_key (String) - (optional)
- captcha_value (String) - (optional)
- email (String) - (optional)
Add a new comment to an update.
- Args:
- request (pyramid.request): The current request.
- Returns:
- dict: A dictionary with two keys. “comment” indexes the new comment, and “caveats” indexes
- an iterable of messages to display to the user.
Make sure this update existsEnsure that a given update id existsEnsure that a given update id existsA validator for our captcha.
Response: json
Comments_Rss service at /rss/comments/¶
Comments RSS feed
GET¶
values in the querystring- like (String) - (optional)
- search (String) - (optional)
- chrome (Boolean) - (default: true)
- page (Integer) - (default: 1)
- rows_per_page (Integer) - (default: 20)
- updates (Sequence) - (optional)
- packages (Sequence) - (optional)
- user (String) - (optional)
- update_owner (String) - (optional)
- ignore_user (String) - (optional)
- anonymous (Boolean) - (optional)
- since (DateTime) - (optional)
Search for comments matching given search parameters.
- Args:
- request (pyramid.request): The current request.
- Return:
- dict: A dictionary with the following key-value pairs:
- comments: An iterable with the current page of matched comments. page: The current page number. pages: The total number of pages. rows_per_page: The number of rows per page. total: The number of items matching the search terms. chrome: A boolean indicating whether to paginate or not.
Make sure this user existsMake sure this user existsMake sure this user existsMake sure those updates existMake sure those packages exist
Response: rss