REQ_MAPPING_INTERFACE
This method allows inserting a requirement mapping using a REST web service. The recorded requirement mapping will be available on the Requirement -> File -> Requirement mapping screen.
POST /apigateway/se/generic/gn_webservice/gn_webservice_execute.php
Query parameters:
Query parameters | Type | Required | Description |
---|---|---|---|
cdprod | Numeric | Yes | Product codeConstant value: 227 |
classname | String | Yes | Class name used in WADLConstant value: req_mapping_interface |
classpath | String | Yes | Path to the class used in WADLConstant value: req_import |
Example request:
Supported attributes:
Request body parameter | Type | Required | Description |
---|---|---|---|
idmapping | String | Yes | Requirement mapping ID # |
nmmapping | String | Yes | Requirement mapping name |
fgobjectmap | Integer | Yes | Mapping scope: 1 - Business unit; 2 - Business unit and department; 3 - Business unit and item; 4 - Business unit and supplier; 5 - Business unit and supply; 6 - Business unit and asset; 7 - Business unit and waste. |
idreqreference | String | Yes | Reference requirement ID # |
idrespuser | String | Yes | Responsible user ID |
idrespteam | String | No | Responsible team ID # |
idbusinessunit | String | Yes | Business unit ID # |
iddept | String | Yes¹ | Department ID # |
idobject | String | Yes² | Object ID # |
iduserinit | String | Yes³ | Starter user ID |
instance | String | No | The value of this constant must be:%WF_IDINSTANCE% |
idact | String | No | Instance activity ID # |
action | Integer | No | The action type that will be performed on the screen: 1 - Insert |
info
- Yes¹ - The
iddept
field will be required only when the requirement mapping is by business unit and department. - Yes² - The
idobject
field will be required only when the requirement mapping is by item/supplier/supply/asset/waste. - Yes³ - The
iduserinit
field will be required only when the requirement mapping revision is by workflow.
{
"idmapping": "string",
"nmmapping": "string",
"fgobjectmap": 1,
"idreqreference": "string",
"idrespuser": "string",
"idrespteam": "string",
"idbusinessunit": "string",
"iddept": "string",
"idobject": "string",
"iduserinit": "string",
"instance": "string",
"idact": "string",
"action": 1
}
Example response:
200 OK
{
"success": true,
"total": 1,
"results": [
{
"Result": true,
"Code": 1
}
]
}