TMFTMForumCategoryRequestTransform

This Data Mapper is used in the TMFTMForumCreateCategory IP.

Input JSON 

1{
2"@schemaLocation": "https://mycsp.com:8080/tmf-api/schemas/Product/Category.schema.json",
3"@type": "Category",
4"description": "A category to hold all available cloud service offers",
5"isRoot": true,
6"lifecycleStatus": "Active",
7"name": "Cloud Services retest",
8"subCategory": [
9{
10"@referredType": "Category",
11"@schemaLocation": "https://mycsp.com:8080/tmf-api/schemas/Product/CategoryRef.schema.json",
12"@type": "CategoryRef",
13"href": "https://mycsp.com:8080/tmf-api/productCatalogManagement/v4/category/6087",
14"id": "6087",
15"name": "Software as a Service",
16"version": "2.0"
17}
18],
19"validFor": {
20"endDateTime": "2024-03-25T00:00:00Z",
21"startDateTime": "2020-08-24T00:00:00Z"
22},
23"version": "1.0"
24}

Output JSON 

1{
2"validFor": {
3"startDateTime": "2020-08-24T00:00:00Z",
4"endDateTime": "2024-03-25T00:00:00Z"
5},
6"subCategory": [
7{
8"version": "2.0",
9"name": "Software as a Service",
10"id": "6087",
11"href": "https://mycsp.com:8080/tmf-api/productCatalogManagement/v4/category/6087",
12"@type": "CategoryRef",
13"@schemaLocation": "https://mycsp.com:8080/tmf-api/schemas/Product/CategoryRef.schema.json",
14"@referredType": "Category"
15}
16],
17"version": "1.0",
18"name": "Cloud Services retest",
19"lifecycleStatus": "Active",
20"isRoot": true,
21"description": "A category to hold all available cloud service offers",
22"@type": "Category",
23"@schemaLocation": "https://mycsp.com:8080/tmf-api/schemas/Product/Category.schema.json"
24}