POST /products
Create products
Request Headers
Name | Type | Required or Optional | Description |
---|---|---|---|
token | string | required | Access Credentials Token |
Request Body
Name | Type | Required or Optional | Description |
---|---|---|---|
program | int | required | belong to which program |
name | string | required | product name |
code | string | required | product code |
line | int | required | belong to which product line |
PO | optional | product owner | |
QD | optioanl | test manager | |
RD | optional | release manager | |
type | string | optional | product type (normal|branch|platform) |
desc | string | optional | description of product |
acl | string | optional | access control (open or private) |
whitelist | array | optional | whitelist |
Request Example
{
"name": "testproduct",
"code": "test",
"program": 1
}
Request Response
Name | Type | Required or Optional | Description |
---|---|---|---|
id | int | optional | product id |
program | int | optional | belong to which program |
name | string | optional | product name |
code | string | optional | product code |
line | int | optional | belong to which product line |
PO | optional | product owner | |
QD | optioanl | test manager | |
RD | optional | release manager | |
type | string | optional | product type (normal|branch|platform) |
status | string | optional | status (normal|closed) |
desc | string | optional | description of product |
acl | string | optional | access control (open or private) |
whitelist | array | optional | whitelist |
createdBy | string | optional | created by |
createdDate | datetime | optional | create time |
Response Example
{
"total": 11,
"products": [
{
"id": 1,
"program": 6,
"name": "companyWebsiteDevelopment1",
"code": "companyWebsite",
"bind": "0",
"line": 0,
"type": "normal",
"status": "normal",
"subStatus": "",
"desc": "create a company website to better show to the public.<br />",
"PO": {
"id": 2,
"account": "productManager",
"avatar": "",
"realname": "productManager"
},
"QD": {
"id": 10,
"account": "testManager",
"avatar": "",
"realname": "testManager"
},
"RD": {
"id": 2,
"account": "productManager",
"avatar": "",
"realname": "productManager"
},
"acl": "open",
"whitelist": [],
"reviewer": "",
"createdBy": {
"id": 2,
"account": "productManager",
"avatar": "",
"realname": "productManager"
},
"createdDate": "2012-06-05T01:57:07Z",
"createdVersion": "",
"order": 5,
"deleted": "0",
"lineName": "",
"programName": "enterpriseManagement",
"stories": {
"active": 5,
"draft": 3,
"": 0,
"closed": 0,
"changed": 0
},
"requirements": {
"0": "",
"1": "draft",
"2": "active",
"3": "closed",
"4": "changed",
"": 0,
"draft": 0,
"active": 0,
"closed": 0,
"changed": 0
},
"plans": 0,
"releases": 0,
"bugs": 5,
"unResolved": 5,
"closedBugs": 0,
"fixedBugs": 0,
"thisWeekBugs": 1,
"assignToNull": 1,
"progress": 0
}
]
}