{
prList: [{
'title': <title of pull request>,
'url': <url of pull request>,
'state': <open or closed>,
'createdAt': <unix_timestamp>,
'updatedAt': <unix_timestamp>,
'raisedBy': <username of the assignee>
}],
task: {
'title': <task tile>,
'purpose': <why this task is needed>,
'endsOn': <unix_timestamp>,
'startedOn': <unix_timestamp>,
'deployedOn': <unix_timestamp>,
'status': <status of the task>,
'participants': [
{
'firstName': <first name of user>,
'lastName': <last name of user>,
'img': <image url of user>,
'username': <username of the user>
},
{
'firstName': <first name of user>,
'lastName': <last name of user>,
'img': <image url of user>,
'username': <username of the user>
}
],
'featureUrl': <url of the feature task>,
'isNoteworthy': true
}
}
Route | Description |
---|---|
GET /contributions/:username | Returns user contributions |
Returns the contributions of the user.
- Params
Required:username=[string]
- Body
None - Headers
Content-Type: application/json - Success Response:
- Code: 200
- Content:
- Code: 200
{
message: 'Contributions returned successfully!',
contributions: {
noteWorthy: [
<contribution_object>,
<contribution_object>
],
all: [
<contribution_object>,
<contribution_object>
]
}
}
- Error Response:
- Code: 404
- Content:
{ "error": "Not Found", "message": "User doesn't exist" }
- Content:
- Code: 500
- Content:
{ "statusCode": 500, "error": "Internal Server Error", "message": "An internal server error occurred" }
- Content:
- Code: 404