Version: 20.05 (EOL)
POST Create Service Definition
Post a JSON object describing a service definition to create a service definition.
Request
HTTP request
https://<JM_SERVER>/manager/secure/rest/service-definitions/v1/
Parameters
This request takes no parameters.
Request body
You must pass in a service definition value object containing the new values.
Example
Request
POST https://transact.maguire.com/manager/secure/rest/service-definitions/v1/
Request body
{
"serviceName": "Random Tracking Number",
"versionNumber": 2,
"serviceType": "Tracking Number",
"description": "A new version of the random tracking number service",
"serviceTypeDefaultFlag": false,
"activeFlag": true,
"jobTemplateFlag": false,
"unitTestEnabledFlag": false,
"clientName": "Maguire",
"classnameBeanname": "com.avoka.fc.core.service.form.RandomTrackingNumberService",
"serviceParameters": [
{
"name": "numberLength",
"description": "The length of the tracking number.",
"type": "List",
"bindParameterFlag": true,
"unitTestFlag": false,
"listValues": "4:4|5:5|6:6|7:7|8:8",
"value": "6"
},
{
"name": "characterValues",
"description": "The list of character values to generate the random tracking number from.",
"type": "String",
"bindParameterFlag": true,
"unitTestFlag": false,
"value": "ABCDEFGHJKLMNPQRSTVWXYZ23456789"
}
]
}
Response
If successful, this operation returns a response with a HTTP 200 OK
status code.
Example
An example succcessful response is shown below.
{
"id": 215,
"serviceName": "Random Tracking Number",
"versionNumber": 2,
"serviceType": "Tracking Number",
"description": "A new version of the random tracking number service",
"serviceTypeDefaultFlag": false,
"activeFlag": true,
"jobTemplateFlag": false,
"unitTestEnabledFlag": false,
"clientName": "Maguire",
"classnameBeanname": "com.avoka.fc.core.service.form.RandomTrackingNumberService",
"createdAt": "Sep 30, 2015 4:08:51 PM",
"createdBy": "someadmin",
"serviceParameters": [
{
"id": 950,
"name": "numberLength",
"description": "The length of the tracking number.",
"type": "List",
"bindParameterFlag": true,
"unitTestFlag": false,
"listValues": "4:4|5:5|6:6|7:7|8:8",
"value": "6",
"createdAt": "Sep 30, 2015 4:08:51 PM",
"createdBy": "someadmin"
},
{
"id": 949,
"name": "characterValues",
"description": "The list of character values to generate the random tracking number from.",
"type": "String",
"bindParameterFlag": true,
"unitTestFlag": false,
"value": "ABCDEFGHJKLMNPQRSTVWXYZ23456789",
"createdAt": "Sep 30, 2015 4:08:51 PM",
"createdBy": "someadmin"
}
]
}